ccm_DistanceType
import { ccm_DistanceType } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
Native object: release it with using or delete(). Factories can return null; check before calling methods.
Enum of possible functions to calculate the distance between colors.
See https://en.wikipedia.org/wiki/Color_difference for details
Constructors and members
static DISTANCE_CIE76
The 1976 formula is the first formula that related a measured color difference to a known set of CIELAB coordinates.
DISTANCE_CIE76: ccm_DistanceTypeValue<0>,static DISTANCE_CIE94_GRAPHIC_ARTS
The 1976 definition was extended to address perceptual non-uniformities.
DISTANCE_CIE94_GRAPHIC_ARTS: ccm_DistanceTypeValue<1>,static DISTANCE_CIE94_TEXTILES
The 1976 definition was extended to address perceptual non-uniformities.
DISTANCE_CIE94_TEXTILES: ccm_DistanceTypeValue<2>,static DISTANCE_CIE2000
distance cie2000 constant (3), defined by OpenCV for cv::ccm.
DISTANCE_CIE2000: ccm_DistanceTypeValue<3>,static DISTANCE_CMC_1TO1
In 1984, the Colour Measurement Committee of the Society of Dyers and Colourists defined a difference measure, also based on the LCh color model.
DISTANCE_CMC_1TO1: ccm_DistanceTypeValue<4>,static DISTANCE_CMC_2TO1
In 1984, the Colour Measurement Committee of the Society of Dyers and Colourists defined a difference measure, also based on the LCh color model.
DISTANCE_CMC_2TO1: ccm_DistanceTypeValue<5>,static DISTANCE_RGB
Euclidean distance of rgb color space
DISTANCE_RGB: ccm_DistanceTypeValue<6>,static DISTANCE_RGBL
Euclidean distance of rgbl color space
DISTANCE_RGBL: ccm_DistanceTypeValue<7>These signatures describe this package. Upstream documentation can mention optional backends that are absent from this build. Check runtime compatibility before choosing a backend or file format.