Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /usr/share/gtk-doc/html/libvips/ drwxr-xr-x | |
| Viewing file: Select action/file-type:
FunctionsTypes and Values
DescriptionThese operators let you transform coordinates and images between colour spaces, calculate colour differences, and move to and from device spaces. All operations process colour from the first few bands and pass other bands through unaltered. This means you can operate on images with alpha channels safely. If you move to or from 16-bit RGB, any alpha channels are rescaled for you. Radiance images have four 8-bits bands and store 8 bits of R, G and B and another 8 bits of exponent, common to all channels. They are widely used in the HDR imaging community. The colour functions can be divided into three main groups. First, functions to transform images between the different colour spaces supported by VIPS: VIPS_INTERPRETATION_sRGB, VIPS_INTERPRETATION_scRGB, VIPS_INTERPRETATION_B_W, VIPS_INTERPRETATION_XYZ, VIPS_INTERPRETATION_YXY, VIPS_INTERPRETATION_LAB, VIPS_INTERPRETATION_LCH, and VIPS_INTERPRETATION_CMC. There are also a set of minor colourspaces which are one of the above in a slightly different format: VIPS_INTERPRETATION_LAB, VIPS_INTERPRETATION_LABQ, VIPS_INTERPRETATION_LABS, VIPS_INTERPRETATION_LCH, VIPS_INTERPRETATION_RGB16, and VIPS_INTERPRETATION_GREY16. Use Secondly, there are a set of operations for calculating colour difference metrics. Finally, VIPS wraps LittleCMS and uses it to provide a set of operations for reading and writing images with ICC profiles. This figure shows how the VIPS colour spaces interconvert:
The colour spaces supported by VIPS are:
Functionsvips_colourspace_issupported ()gboolean
vips_colourspace_issupported (
Test if vips_colourspace ()int vips_colourspace ( Optional arguments:
This operation looks at the interpretation field of For example, given an image tagged as VIPS_INTERPRETATION_YXY, running
See also: [method] vips_LabQ2sRGB ()int vips_LabQ2sRGB ( Unpack a LabQ (VIPS_CODING_LABQ) image to a three-band short image. See also: [method] vips_rad2float ()int vips_rad2float ( Unpack a RAD (VIPS_CODING_RAD) image to a three-band float image. See also: [method] vips_float2rad ()int vips_float2rad ( Convert a three-band float image to Radiance 32-bit packed format. See also: [method] vips_LabS2LabQ ()int vips_LabS2LabQ ( Convert a LabS three-band signed short image to LabQ See also: [method] vips_LabQ2LabS ()int vips_LabQ2LabS ( Unpack a LabQ (VIPS_CODING_LABQ) image to a three-band short image. See also: [method] vips_LabQ2Lab ()int vips_LabQ2Lab ( Unpack a LabQ (VIPS_CODING_LABQ) image to a three-band float image. See also: [method] vips_Lab2LabQ ()int vips_Lab2LabQ ( Convert a Lab three-band float image to LabQ (VIPS_CODING_LABQ). See also: [method] vips_LCh2Lab ()int vips_LCh2Lab ( Turn LCh to Lab. [method] vips_Lab2LCh ()int vips_Lab2LCh ( Turn Lab to LCh. [method] vips_Lab2XYZ ()int vips_Lab2XYZ ( Optional arguments:
Turn Lab to XYZ. The colour temperature defaults to D65, but can be
specified with [method] vips_XYZ2Lab ()int vips_XYZ2Lab ( Optional arguments:
Turn XYZ to Lab, optionally specifying the colour temperature. [method] vips_XYZ2scRGB ()int vips_XYZ2scRGB ( Turn XYZ to scRGB. [method] vips_scRGB2sRGB ()int vips_scRGB2sRGB ( Optional arguments:
Convert an scRGB image to sRGB. Set If See also: [method] vips_scRGB2BW ()int vips_scRGB2BW ( Optional arguments:
Convert an scRGB image to greyscale. Set If See also: [method] vips_sRGB2scRGB ()int vips_sRGB2scRGB ( Convert an sRGB image to scRGB. The input image can be 8 or 16-bit. If the input image is tagged as VIPS_INTERPRETATION_RGB16, any extra channels after RGB are divided by 256. Thus, scRGB alpha is always 0 - 255.99. See also: [method] vips_scRGB2XYZ ()int vips_scRGB2XYZ ( Turn XYZ to scRGB. [method] vips_HSV2sRGB ()int vips_HSV2sRGB ( Convert HSV to sRGB. HSV is a crude polar coordinate system for RGB images. It is provided for
compatibility with other image processing systems. See See also: [method] vips_sRGB2HSV ()int vips_sRGB2HSV ( Convert to HSV. HSV is a crude polar coordinate system for RGB images. It is provided for
compatibility with other image processing systems. See See also: [method] vips_LCh2CMC ()int vips_LCh2CMC ( Turn LCh to CMC. The CMC colourspace is described in "Uniform Colour Space Based on the CMC(l:c) Colour-difference Formula", M R Luo and B Rigg, Journal of the Society of Dyers and Colourists, vol 102, 1986. Distances in this colourspace approximate, within 10% or so, differences in the CMC(l:c) colour difference formula. This operation generates CMC(1:1). For CMC(2:1), halve Lucs and double Cucs. See also: [method] vips_CMC2LCh ()int vips_CMC2LCh ( Turn LCh to CMC. See also: [method] vips_XYZ2Yxy ()int vips_XYZ2Yxy ( Turn XYZ to Yxy. [method] vips_Yxy2XYZ ()int vips_Yxy2XYZ ( Turn XYZ to Yxy. [method] vips_LabS2Lab ()int vips_LabS2Lab ( Convert a LabS three-band signed short image to a three-band float image. See also: [method] vips_Lab2LabS ()int vips_Lab2LabS ( Turn Lab to LabS, signed 16-bit int fixed point. See also: [method] vips_CMYK2XYZ ()int vips_CMYK2XYZ ( Turn CMYK to XYZ. If the image has an embedded ICC profile this will be used for the conversion. If there is no embedded profile, a generic fallback profile will be used. Conversion is to D65 XYZ with relative intent. If you need more control
over the process, use [method] vips_XYZ2CMYK ()int vips_XYZ2CMYK ( Turn XYZ to CMYK. If the image has an embedded ICC profile this will be used for the conversion. If there is no embedded profile, a generic fallback profile will be used. Conversion is from D65 XYZ with relative intent. If you need more control
over the process, use [method] vips_profile_load ()int vips_profile_load ( Load a named profile. Profiles are loaded from four sources:
vips_icc_present ()int
vips_icc_present (
VIPS can optionally be built without the ICC library. Use this function to test for its availability. vips_icc_transform ()int vips_icc_transform ( Optional arguments:
Transform an image with a pair of ICC profiles. The input image is moved to profile-connection space with the input profile and then to the output space with the output profile. If If The output image has the output profile attached to the VIPS_META_ICC_NAME field. Use [method] vips_icc_import ()int vips_icc_import ( Optional arguments:
Import an image from device space to D65 LAB with an ICC profile. If If If [method] vips_icc_export ()int vips_icc_export ( Optional arguments:
Export an image from D65 LAB to device space with an ICC profile.
If [method] vips_icc_ac2rc ()int vips_icc_ac2rc ( Transform an image from absolute to relative colorimetry using the MediaWhitePoint stored in the ICC profile. See also: [method] vips_icc_is_compatible_profile ()gboolean vips_icc_is_compatible_profile ( vips_dE76 ()int vips_dE76 ( Calculate dE 76. vips_dE00 ()int vips_dE00 ( Calculate dE 00. vips_dECMC ()int vips_dECMC ( Calculate dE CMC. The input images are transformed to CMC colour space and the euclidean distance between corresponding pixels calculated. To calculate a colour difference with values for (l:c) other than (1:1), transform the two source images to CMC yourself, scale the channels appropriately, and call this function. See also: vips_col_Lab2XYZ ()void vips_col_Lab2XYZ ( Calculate XYZ from Lab, D65. See also: vips_col_XYZ2Lab ()void vips_col_XYZ2Lab ( Calculate XYZ from Lab, D65. See also: vips_col_Ch2ab ()void vips_col_Ch2ab ( Calculate ab from Ch, h in degrees. vips_col_Lcmc2L ()float
vips_col_Lcmc2L (
Calculate L from Lcmc using a table. Call vips_col_Ccmc2C ()float
vips_col_Ccmc2C (
Calculate C from Ccmc using a table.
Call vips_col_Chcmc2h ()float vips_col_Chcmc2h ( Calculate h from C and hcmc, using a table.
Call vips_col_sRGB2scRGB_8 ()int vips_col_sRGB2scRGB_8 ( vips_col_sRGB2scRGB_16 ()int vips_col_sRGB2scRGB_16 ( vips_col_sRGB2scRGB_8_noclip ()int vips_col_sRGB2scRGB_8_noclip ( vips_col_sRGB2scRGB_16_noclip ()int vips_col_sRGB2scRGB_16_noclip ( vips_col_scRGB2XYZ ()int vips_col_scRGB2XYZ ( vips_col_XYZ2scRGB ()int vips_col_XYZ2scRGB ( vips_col_scRGB2sRGB_8 ()int vips_col_scRGB2sRGB_8 ( vips_col_scRGB2sRGB_16 ()int vips_col_scRGB2sRGB_16 ( vips_pythagoras ()float vips_pythagoras ( Pythagorean distance between two points in colour space. Lab/XYZ/CMC etc. vips_col_dE00 ()float vips_col_dE00 ( CIEDE2000, from: Luo, Cui, Rigg, "The Development of the CIE 2000 Colour-Difference Formula: CIEDE2000", COLOR research and application, pp 340 Types and ValuesVIPS_A_X0#define VIPS_A_X0 (109.8503) Areas under curves for illuminant A (2856K), 2 degree observer. VIPS_B_X0#define VIPS_B_X0 (99.0720) Areas under curves for illuminant B (4874K), 2 degree observer. VIPS_C_X0#define VIPS_C_X0 (98.0700) Areas under curves for illuminant C (6774K), 2 degree observer. VIPS_D3250_X0#define VIPS_D3250_X0 (105.6590) Areas under curves for black body at 3250K, 2 degree observer. enum VipsIntentThe rendering intent. VIPS_INTENT_ABSOLUTE is best for scientific work, VIPS_INTENT_RELATIVE is usually best for accurate communication with other imaging libraries. enum VipsPCSPick a Profile Connection Space for |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0134 ]-- |