Team Ai
Datasetpublic

Brunobkr/llama.cpp_AlgMor24_github

ΩFFFΣLLIa • llama.cpp • AlgMor24 ██████╗ ███████╗███████╗███████╗██╗ ██╗ ██╗ █████╗ ██╔═══██╗██╔════╝██╔════╝██╔════╝██║ ██║ ██║██╔══██╗ ██║ ██║█████╗ █████╗ █████╗ ██║ ██║ ██║███████║ ██║ ██║██╔══╝ ██╔══╝ ██╔══╝ ██║ ██║ ██║██╔══██║ ╚██████╔╝██║ ██║ ███████╗███████╗███████╗██║██║ ██║ ╚═════╝ ╚═╝ ╚═╝ ╚══════╝╚══════╝╚══════╝╚═╝╚═╝ ╚═╝ High-Performance LLM / VLM Inference & Autonomous Agentic Ecosystem… See the full description on the dataset page: https://huggingface.co/datasets/Brunobkr/llama.cpp_AlgMor24_github.

sourceHugging Faceupdated 2mo agoView on Hugging Face
0likes3kdownloads
operations.h138 linesDownload Raw Back to src
1/*!2  Copyright 2013 Lovell Fuller and others.3  SPDX-License-Identifier: Apache-2.04*/5 6#ifndef SRC_OPERATIONS_H_7#define SRC_OPERATIONS_H_8 9#include <algorithm>10#include <functional>11#include <memory>12#include <tuple>13#include <vector>14#include <vips/vips8>15 16using vips::VImage;17 18namespace sharp {19 20  /*21   * Tint an image using the provided RGB.22   */23  VImage Tint(VImage image, std::vector<double> const tint);24 25  /*26   * Stretch luminance to cover full dynamic range.27   */28  VImage Normalise(VImage image, int const lower, int const upper);29 30  /*31   * Contrast limiting adapative histogram equalization (CLAHE)32   */33  VImage Clahe(VImage image, int const width, int const height, int const maxSlope);34 35  /*36   * Gamma encoding/decoding37   */38  VImage Gamma(VImage image, double const exponent);39 40  /*41   * Flatten image to remove alpha channel42   */43  VImage Flatten(VImage image, std::vector<double> flattenBackground);44 45  /*46   * Produce the "negative" of the image.47   */48  VImage Negate(VImage image, bool const negateAlpha);49 50  /*51   * Gaussian blur. Use sigma of -1.0 for fast blur.52   */53  VImage Blur(VImage image, double const sigma, VipsPrecision precision, double const minAmpl);54 55  /*56   * Convolution with a kernel.57   */58  VImage Convolve(VImage image, int const width, int const height,59    double const scale, double const offset, std::vector<double> const &kernel_v);60 61  /*62   * Sharpen flat and jagged areas. Use sigma of -1.0 for fast sharpen.63   */64  VImage Sharpen(VImage image, double const sigma, double const m1, double const m2,65    double const x1, double const y2, double const y3);66 67  /*68    Threshold an image69  */70  VImage Threshold(VImage image, double const threshold, bool const thresholdColor);71 72  /*73    Perform boolean/bitwise operation on image color channels - results in one channel image74  */75  VImage Bandbool(VImage image, VipsOperationBoolean const boolean);76 77  /*78    Perform bitwise boolean operation between images79  */80  VImage Boolean(VImage image, VImage imageR, VipsOperationBoolean const boolean);81 82  /*83    Trim an image84  */85  VImage Trim(VImage image, std::vector<double> background, double threshold, bool const lineArt, int const margin);86 87  /*88   * Linear adjustment (a * in + b)89   */90  VImage Linear(VImage image, std::vector<double> const a,  std::vector<double> const b);91 92  /*93   * Unflatten94   */95  VImage Unflatten(VImage image);96 97  /*98   * Recomb with a Matrix of the given bands/channel size.99   * Eg. RGB will be a 3x3 matrix.100   */101  VImage Recomb(VImage image, std::vector<double> const &matrix);102 103  /*104   * Modulate brightness, saturation, hue and lightness105   */106  VImage Modulate(VImage image, double const brightness, double const saturation,107                  int const hue, double const lightness);108 109  /*110   * Ensure the image is in a given colourspace111   */112  VImage EnsureColourspace(VImage image, VipsInterpretation colourspace);113 114  /*115   * Split and crop each frame, reassemble, and update pageHeight.116   */117  VImage CropMultiPage(VImage image, int left, int top, int width, int height,118                       int nPages, int *pageHeight);119 120  /*121   * Split into frames, embed each frame, reassemble, and update pageHeight.122   */123  VImage EmbedMultiPage(VImage image, int left, int top, int width, int height,124                        VipsExtend extendWith, std::vector<double> background, int nPages, int *pageHeight);125 126  /*127   * Dilate an image128   */129  VImage Dilate(VImage image, int const maskWidth);130 131  /*132   * Erode an image133   */134  VImage Erode(VImage image, int const maskWidth);135}  // namespace sharp136 137#endif  // SRC_OPERATIONS_H_138 
Brunobkr/llama.cpp_AlgMor24_github · Team Ai