Back to Libvips

Function List

doc/function-list.md

8.18.226.7 KB
Original Source

Title: Operator index / Alphabetical

libvips has a set of operators, each of which computes some useful image processing operation. Each operator is implemented as a [[email protected]] class, for example VipsGamma. Classes are identified by their unique [property@VipsObject:nickname], in this case gamma.

From the command-line, C++ and most language bindings, you use the nickname to call the operator. For example in C++:

c++
vips::VImage fred = ...;
vips::VImage jim = fred.gamma();

or Python:

python
fred = jim.gamma()

libvips has a set of C wrapper functions for calling operators, in this case [[email protected]]:

c
VipsImage *fred = ...;
VipsImage *jim;

if (vips_gamma(fred, &jim, NULL))
    ...error;

Some operators have many C convenience functions.

All libvips operators

This table lists all the libvips operators with their C convenience functions and a short description. It's supposed to be useful for searching. See the API docs each function links to for more details.

OperatorDescriptionC functions
CMC2LChTransform lch to cmc[[email protected]]
CMYK2XYZTransform cmyk to xyz[[email protected]]
HSV2sRGBTransform hsv to srgb[[email protected]]
LCh2CMCTransform lch to cmc[[email protected]]
LCh2LabTransform lch to lab[[email protected]]
Lab2LChTransform lab to lch[[email protected]]
Lab2LabQTransform float lab to labq coding[[email protected]]
Lab2LabSTransform float lab to signed short[[email protected]]
Lab2XYZTransform cielab to xyz[[email protected]]
LabQ2LabUnpack a labq image to float lab[[email protected]]
LabQ2LabSUnpack a labq image to short lab[[email protected]]
LabQ2sRGBConvert a labq image to srgb[[email protected]]
LabS2LabTransform signed short lab to float[[email protected]]
LabS2LabQTransform short lab to labq coding[[email protected]]
Oklab2OklchTransform oklab to oklch[[email protected]]
Oklab2XYZTransform oklab to xyz[[email protected]]
Oklch2OklabTransform oklch to oklab[[email protected]]
XYZ2CMYKTransform xyz to cmyk[[email protected]]
XYZ2LabTransform xyz to lab[[email protected]]
XYZ2OklabTransform xyz to oklab[[email protected]]
XYZ2YxyTransform xyz to yxy[[email protected]]
XYZ2scRGBTransform xyz to scrgb[[email protected]]
Yxy2XYZTransform yxy to xyz[[email protected]]
absAbsolute value of an image[[email protected]]
addAdd two images[[email protected]]
addalphaAppend an alpha channel[[email protected]]
affineAffine transform of an image[[email protected]]
analyzeloadLoad an analyze6 image[[email protected]]
arrayjoinJoin an array of images[[email protected]]
autorotAutorotate image by exif tag[[email protected]]
avgFind image average[[email protected]]
bandboolBoolean operation across image bands[[email protected]], [[email protected]], [[email protected]], [[email protected]], [[email protected]]
bandfoldFold up x axis into bands[[email protected]]
bandjoinBandwise join a set of images[[email protected]], [[email protected]]
bandjoin_constAppend a constant band to an image[[email protected]_const], [[email protected]_const1]
bandmeanBand-wise average[[email protected]]
bandrankBand-wise rank of a set of images[[email protected]]
bandunfoldUnfold image bands into x axis[[email protected]]
blackMake a black image[[email protected]]
booleanBoolean operation on two images[[email protected]], [[email protected]], [[email protected]], [[email protected]], [[email protected]], [[email protected]]
boolean_constBoolean operations against a constant[[email protected]_const], [[email protected]_const], [[email protected]_const], [[email protected]_const], [[email protected]_const], [[email protected]_const], [[email protected]_const1], [[email protected]_const1], [[email protected]_const1], [[email protected]_const1], [[email protected]_const1], [[email protected]_const1]
buildlutBuild a look-up table[[email protected]]
byteswapByteswap an image[[email protected]]
cannyCanny edge detector[[email protected]]
caseUse pixel values to pick cases from an array of images[[email protected]]
castCast an image[[email protected]], [[email protected]_uchar], [[email protected]_char], [[email protected]_ushort], [[email protected]_short], [[email protected]_uint], [[email protected]_int], [[email protected]_float], [[email protected]_double], [[email protected]_complex], [[email protected]_dpcomplex]
clampClamp values of an image[[email protected]]
colourspaceConvert to a new colorspace[[email protected]]
compassConvolve with rotating mask[[email protected]]
complexPerform a complex operation on an image[[email protected]], [[email protected]], [[email protected]], [[email protected]]
complex2Complex binary operations on two images[[email protected]], [[email protected]_phase]
complexformForm a complex image from two real images[[email protected]]
complexgetGet a component from a complex image[[email protected]], [[email protected]], [[email protected]]
compositeBlend an array of images with an array of blend modes[[email protected]]
composite2Blend a pair of images with a blend mode[[email protected]]
convConvolution operation[[email protected]]
convaApproximate integer convolution[[email protected]]
convasepApproximate separable integer convolution[[email protected]]
convfFloat convolution operation[[email protected]]
conviInt convolution operation[[email protected]]
convsepSeparable convolution operation[[email protected]]
copyCopy an image[[email protected]]
countlinesCount lines in an image[[email protected]]
csvloadLoad csv[[email protected]]
csvload_sourceLoad csv[[email protected]_source]
csvsaveSave image to csv[[email protected]]
csvsave_targetSave image to csv[[email protected]_target]
dE00Calculate de00[[email protected]]
dE76Calculate de76[[email protected]]
dECMCCalculate decmc[[email protected]]
dcrawloadLoad raw camera files[[email protected]]
dcrawload_bufferLoad raw camera files[[email protected]_buffer]
dcrawload_sourceLoad raw camera files[[email protected]_source]
deviateFind image standard deviation[[email protected]]
divideDivide two images[[email protected]]
draw_circleDraw a circle on an image[[email protected]_circle], [[email protected]_circle1]
draw_floodFlood-fill an area[[email protected]_flood], [[email protected]_flood1]
draw_imagePaint an image into another image[[email protected]_image]
draw_lineDraw a line on an image[[email protected]_line], [[email protected]_line1]
draw_maskDraw a mask on an image[[email protected]_mask], [[email protected]_mask1]
draw_rectPaint a rectangle on an image[[email protected]_rect], [[email protected]_rect1], [[email protected]_point], [[email protected]_point1]
draw_smudgeBlur a rectangle on an image[[email protected]_smudge]
dzsaveSave image to deepzoom file[[email protected]]
dzsave_bufferSave image to dz buffer[[email protected]_buffer]
dzsave_targetSave image to deepzoom target[[email protected]_target]
embedEmbed an image in a larger image[[email protected]]
extract_areaExtract an area from an image[[email protected]_area], [[email protected]]
extract_bandExtract band from an image[[email protected]_band]
eyeMake an image showing the eye's spatial response[[email protected]]
falsecolourFalse-color an image[[email protected]]
fastcorFast correlation[[email protected]]
fill_nearestFill image zeros with nearest non-zero pixel[[email protected]_nearest]
find_trimSearch an image for non-edge areas[[email protected]_trim]
fitsloadLoad a fits image[[email protected]]
fitsload_sourceLoad fits from a source[[email protected]_source]
fitssaveSave image to fits file[[email protected]]
flattenFlatten alpha out of an image[[email protected]]
flipFlip an image[[email protected]]
float2radTransform float rgb to radiance coding[[email protected]]
fractsurfMake a fractal surface[[email protected]]
freqmultFrequency-domain filtering[[email protected]]
fwfftForward fft[[email protected]]
gammaGamma an image[[email protected]]
gaussblurGaussian blur[[email protected]]
gaussmatMake a gaussian image[[email protected]]
gaussnoiseMake a gaussnoise image[[email protected]]
getpointRead a point from an image[[email protected]]
gifloadLoad gif with libnsgif[[email protected]]
gifload_bufferLoad gif with libnsgif[[email protected]_buffer]
gifload_sourceLoad gif from source[[email protected]_source]
gifsaveSave as gif[[email protected]]
gifsave_bufferSave as gif[[email protected]_buffer]
gifsave_targetSave as gif[[email protected]_target]
globalbalanceGlobal balance an image mosaic[[email protected]]
gravityPlace an image within a larger image with a certain gravity[[email protected]]
greyMake a grey ramp image[[email protected]]
gridGrid an image[[email protected]]
heifloadLoad a heif image[[email protected]]
heifload_bufferLoad a heif image[[email protected]_buffer]
heifload_sourceLoad a heif image[[email protected]_source]
heifsaveSave image in heif format[[email protected]]
heifsave_bufferSave image in heif format[[email protected]_buffer]
heifsave_targetSave image in heif format[[email protected]_target]
hist_cumForm cumulative histogram[[email protected]_cum]
hist_entropyEstimate image entropy[[email protected]_entropy]
hist_equalHistogram equalisation[[email protected]_equal]
hist_findFind image histogram[[email protected]_find]
hist_find_indexedFind indexed image histogram[[email protected]_find_indexed]
hist_find_ndimFind n-dimensional image histogram[[email protected]_find_ndim]
hist_ismonotonicTest for monotonicity[[email protected]_ismonotonic]
hist_localLocal histogram equalisation[[email protected]_local]
hist_matchMatch two histograms[[email protected]_match]
hist_normNormalise histogram[[email protected]_norm]
hist_plotPlot histogram[[email protected]_plot]
hough_circleFind hough circle transform[[email protected]_circle]
hough_lineFind hough line transform[[email protected]_line]
icc_exportOutput to device with icc profile[[email protected]_export]
icc_importImport from device with icc profile[[email protected]_import]
icc_transformTransform between devices with icc profiles[[email protected]_transform]
identityMake a 1d image where pixel values are indexes[[email protected]]
ifthenelseIfthenelse an image[[email protected]]
insertInsert image @sub into @main at @x, @y[[email protected]]
invertInvert an image[[email protected]]
invertlutBuild an inverted look-up table[[email protected]]
invfftInverse fft[[email protected]]
joinJoin a pair of images[[email protected]]
jp2kloadLoad jpeg2000 image[[email protected]]
jp2kload_bufferLoad jpeg2000 image[[email protected]_buffer]
jp2kload_sourceLoad jpeg2000 image[[email protected]_source]
jp2ksaveSave image in jpeg2000 format[[email protected]]
jp2ksave_bufferSave image in jpeg2000 format[[email protected]_buffer]
jp2ksave_targetSave image in jpeg2000 format[[email protected]_target]
jpegloadLoad jpeg from file[[email protected]]
jpegload_bufferLoad jpeg from buffer[[email protected]_buffer]
jpegload_sourceLoad image from jpeg source[[email protected]_source]
jpegsaveSave as jpeg[[email protected]]
jpegsave_bufferSave as jpeg[[email protected]_buffer]
jpegsave_mimeSave image to jpeg mime[[email protected]_mime]
jpegsave_targetSave as jpeg[[email protected]_target]
jxlloadLoad jpeg-xl image[[email protected]]
jxlload_bufferLoad jpeg-xl image[[email protected]_buffer]
jxlload_sourceLoad jpeg-xl image[[email protected]_source]
jxlsaveSave image in jpeg-xl format[[email protected]]
jxlsave_bufferSave image in jpeg-xl format[[email protected]_buffer]
jxlsave_targetSave image in jpeg-xl format[[email protected]_target]
labelregionsLabel regions in an image[[email protected]]
linearCalculate (a * in + b)[[email protected]], [[email protected]]
linecacheCache an image as a set of lines[[email protected]]
logmatMake a laplacian of gaussian image[[email protected]]
magickloadLoad file with imagemagick[[email protected]]
magickload_bufferLoad buffer with imagemagick[[email protected]_buffer]
magickload_sourceLoad source with imagemagick[[email protected]_source]
magicksaveSave file with imagemagick[[email protected]]
magicksave_bufferSave image to magick buffer[[email protected]_buffer]
mapimResample with a map image[[email protected]]
maplutMap an image though a lut[[email protected]]
mask_butterworthMake a butterworth filter[[email protected]_butterworth]
mask_butterworth_bandMake a butterworth_band filter[[email protected]_butterworth_band]
mask_butterworth_ringMake a butterworth ring filter[[email protected]_butterworth_ring]
mask_fractalMake fractal filter[[email protected]_fractal]
mask_gaussianMake a gaussian filter[[email protected]_gaussian]
mask_gaussian_bandMake a gaussian filter[[email protected]_gaussian_band]
mask_gaussian_ringMake a gaussian ring filter[[email protected]_gaussian_ring]
mask_idealMake an ideal filter[[email protected]_ideal]
mask_ideal_bandMake an ideal band filter[[email protected]_ideal_band]
mask_ideal_ringMake an ideal ring filter[[email protected]_ideal_ring]
matchFirst-order match of two images[[email protected]]
mathApply a math operation to an image[[email protected]], [[email protected]], [[email protected]], [[email protected]], [[email protected]], [[email protected]], [[email protected]], [[email protected]], [[email protected]], [[email protected]], [[email protected]], [[email protected]], [[email protected]], [[email protected]], [[email protected]], [[email protected]], [[email protected]]
math2Binary math operations[[email protected]], [[email protected]], [[email protected]], [[email protected]]
math2_constBinary math operations with a constant[[email protected]_const], [[email protected]_const], [[email protected]_const], [[email protected]_const], [[email protected]_const], [[email protected]_const], [[email protected]_const1], [[email protected]_const1], [[email protected]_const1], [[email protected]_const1], [[email protected]_const1], [[email protected]_const1]
matloadLoad mat from file[[email protected]]
matrixinvertInvert a matrix[[email protected]]
matrixloadLoad matrix[[email protected]]
matrixload_sourceLoad matrix[[email protected]_source]
matrixmultiplyMultiply two matrices[[email protected]]
matrixprintPrint matrix[[email protected]]
matrixsaveSave image to matrix[[email protected]]
matrixsave_targetSave image to matrix[[email protected]_target]
maxFind image maximum[[email protected]]
maxpairMaximum of a pair of images[[email protected]]
measureMeasure a set of patches on a color chart[[email protected]]
mergeMerge two images[[email protected]]
minFind image minimum[[email protected]]
minpairMinimum of a pair of images[[email protected]]
morphMorphology operation[[email protected]]
mosaicMosaic two images[[email protected]]
mosaic1First-order mosaic of two images[[email protected]]
msbPick most-significant byte from an image[[email protected]]
multiplyMultiply two images[[email protected]]
niftiloadLoad nifti volume[[email protected]]
niftiload_sourceLoad nifti volumes[[email protected]_source]
niftisaveSave image to nifti file[[email protected]]
openexrloadLoad an openexr image[[email protected]]
openslideloadLoad file with openslide[[email protected]]
openslideload_sourceLoad source with openslide[[email protected]_source]
pdfloadLoad pdf from file[[email protected]]
pdfload_bufferLoad pdf from buffer[[email protected]_buffer]
pdfload_sourceLoad pdf from source[[email protected]_source]
percentFind threshold for percent of pixels[[email protected]]
perlinMake a perlin noise image[[email protected]]
phasecorCalculate phase correlation[[email protected]]
pngloadLoad png from file[[email protected]]
pngload_bufferLoad png from buffer[[email protected]_buffer]
pngload_sourceLoad png from source[[email protected]_source]
pngsaveSave image to file as png[[email protected]]
pngsave_bufferSave image to buffer as png[[email protected]_buffer]
pngsave_targetSave image to target as png[[email protected]_target]
ppmloadLoad ppm from file[[email protected]]
ppmload_bufferLoad ppm from buffer[[email protected]_buffer]
ppmload_sourceLoad ppm from source[[email protected]_source]
ppmsaveSave image to ppm file[[email protected]]
ppmsave_targetSave to ppm[[email protected]_target]
premultiplyPremultiply image alpha[[email protected]]
prewittPrewitt edge detector[[email protected]]
profileFind image profiles[[email protected]]
profile_loadLoad named icc profile[[email protected]_load]
projectFind image projections[[email protected]]
quadraticResample an image with a quadratic transform[[email protected]]
rad2floatUnpack radiance coding to float rgb[[email protected]]
radloadLoad a radiance image from a file[[email protected]]
radload_bufferLoad rad from buffer[[email protected]_buffer]
radload_sourceLoad rad from source[[email protected]_source]
radsaveSave image to radiance file[[email protected]]
radsave_bufferSave image to radiance buffer[[email protected]_buffer]
radsave_targetSave image to radiance target[[email protected]_target]
rankRank filter[[email protected]], [[email protected]]
rawloadLoad raw data from a file[[email protected]]
rawsaveSave image to raw file[[email protected]]
rawsave_bufferWrite raw image to buffer[[email protected]_buffer]
rawsave_targetWrite raw image to target[[email protected]_target]
recombLinear recombination with matrix[[email protected]]
reduceReduce an image[[email protected]]
reducehShrink an image horizontally[[email protected]]
reducevShrink an image vertically[[email protected]]
relationalRelational operation on two images[[email protected]], [[email protected]], [[email protected]], [[email protected]], [[email protected]], [[email protected]], [[email protected]]
relational_constRelational operations against a constant[[email protected]_const], [[email protected]_const], [[email protected]_const], [[email protected]_const], [[email protected]_const], [[email protected]_const], [[email protected]_const], [[email protected]_const1], [[email protected]_const1], [[email protected]_const1], [[email protected]_const1], [[email protected]_const1], [[email protected]_const1], [[email protected]_const1]
remainderRemainder after integer division of two images[[email protected]]
remainder_constRemainder after integer division of an image and a constant[[email protected]_const], [[email protected]_const1]
remosaicRebuild an mosaiced image[[email protected]]
replicateReplicate an image[[email protected]]
resizeResize an image[[email protected]]
rotRotate an image[[email protected]]
rot45Rotate an image[[email protected]]
rotateRotate an image by a number of degrees[[email protected]]
roundPerform a round function on an image[[email protected]], [[email protected]], [[email protected]], [[email protected]]
sRGB2HSVTransform srgb to hsv[[email protected]]
sRGB2scRGBConvert an srgb image to scrgb[[email protected]]
scRGB2BWConvert scrgb to bw[[email protected]]
scRGB2XYZTransform scrgb to xyz[[email protected]]
scRGB2sRGBConvert scrgb to srgb[[email protected]]
scaleScale an image to uchar[[email protected]]
scharrScharr edge detector[[email protected]]
sdfCreate an sdf image[[email protected]]
sequentialCheck sequential access[[email protected]]
sharpenUnsharp masking for print[[email protected]]
shrinkShrink an image[[email protected]]
shrinkhShrink an image horizontally[[email protected]]
shrinkvShrink an image vertically[[email protected]]
signUnit vector of pixel[[email protected]]
similaritySimilarity transform of an image[[email protected]]
sinesMake a 2d sine wave[[email protected]]
smartcropExtract an area from an image[[email protected]]
sobelSobel edge detector[[email protected]]
spcorSpatial correlation[[email protected]]
spectrumMake displayable power spectrum[[email protected]]
statsFind many image stats[[email protected]]
stdifStatistical difference[[email protected]]
subsampleSubsample an image[[email protected]]
subtractSubtract two images[[email protected]]
sumSum an array of images[[email protected]]
svgloadLoad svg with rsvg[[email protected]]
svgload_bufferLoad svg with rsvg[[email protected]_buffer]
svgload_sourceLoad svg from source[[email protected]_source]
switchFind the index of the first non-zero pixel in tests[[email protected]]
systemRun an external command[[email protected]]
textMake a text image[[email protected]]
thumbnailGenerate thumbnail from file[[email protected]]
thumbnail_bufferGenerate thumbnail from buffer[[email protected]_buffer]
thumbnail_imageGenerate thumbnail from image[[email protected]_image]
thumbnail_sourceGenerate thumbnail from source[[email protected]_source]
tiffloadLoad tiff from file[[email protected]]
tiffload_bufferLoad tiff from buffer[[email protected]_buffer]
tiffload_sourceLoad tiff from source[[email protected]_source]
tiffsaveSave image to tiff file[[email protected]]
tiffsave_bufferSave image to tiff buffer[[email protected]_buffer]
tiffsave_targetSave image to tiff target[[email protected]_target]
tilecacheCache an image as a set of tiles[[email protected]]
tonelutBuild a look-up table[[email protected]]
transpose3dTranspose3d an image[[email protected]]
uhdr2scRGBTransform uhdr to scrgb[[email protected]]
uhdrloadLoad a uhdr image[[email protected]]
uhdrload_bufferLoad a uhdr image[[email protected]_buffer]
uhdrload_sourceLoad a uhdr image[[email protected]_source]
uhdrsaveSave image in ultrahdr format[[email protected]]
uhdrsave_bufferSave image in ultrahdr format[[email protected]_buffer]
uhdrsave_targetSave image in ultrahdr format[[email protected]_target]
unpremultiplyUnpremultiply image alpha[[email protected]]
vipsloadLoad vips from file[[email protected]]
vipsload_sourceLoad vips from source[[email protected]_source]
vipssaveSave image to file in vips format[[email protected]]
vipssave_targetSave image to target in vips format[[email protected]_target]
webploadLoad webp from file[[email protected]]
webpload_bufferLoad webp from buffer[[email protected]_buffer]
webpload_sourceLoad webp from source[[email protected]_source]
webpsaveSave as webp[[email protected]]
webpsave_bufferSave as webp[[email protected]_buffer]
webpsave_mimeSave image to webp mime[[email protected]_mime]
webpsave_targetSave as webp[[email protected]_target]
worleyMake a worley noise image[[email protected]]
wrapWrap image origin[[email protected]]
xyzMake an image where pixel values are coordinates[[email protected]]
zoneMake a zone plate[[email protected]]
zoomZoom an image[[email protected]]