Module: OpenCV

Defined in:
ext/opencv/opencv.cpp,
ext/opencv/gui.cpp,
ext/opencv/lbph.cpp,
ext/opencv/curve.cpp,
ext/opencv/cvmat.cpp,
ext/opencv/cvfont.cpp,
ext/opencv/cvline.cpp,
ext/opencv/cvrect.cpp,
ext/opencv/cvsize.cpp,
ext/opencv/opencv.cpp,
ext/opencv/window.cpp,
ext/opencv/cvbox2d.cpp,
ext/opencv/cvchain.cpp,
ext/opencv/cverror.cpp,
ext/opencv/cvpoint.cpp,
ext/opencv/cvslice.cpp,
ext/opencv/cvscalar.cpp,
ext/opencv/iplimage.cpp,
ext/opencv/pointset.cpp,
ext/opencv/trackbar.cpp,
ext/opencv/algorithm.cpp,
ext/opencv/cvavgcomp.cpp,
ext/opencv/cvcapture.cpp,
ext/opencv/cvcontour.cpp,
ext/opencv/cvmoments.cpp,
ext/opencv/eigenfaces.cpp,
ext/opencv/mouseevent.cpp,
ext/opencv/cvcircle32f.cpp,
ext/opencv/cvhistogram.cpp,
ext/opencv/cvhumoments.cpp,
ext/opencv/cvsize2d32f.cpp,
ext/opencv/cvsurfpoint.cpp,
ext/opencv/cvtwopoints.cpp,
ext/opencv/fisherfaces.cpp,
ext/opencv/cvmemstorage.cpp,
ext/opencv/cvpoint2d32f.cpp,
ext/opencv/cvpoint3d32f.cpp,
ext/opencv/cvsurfparams.cpp,
ext/opencv/cvcontourtree.cpp,
ext/opencv/cvfeaturetree.cpp,
ext/opencv/cvvideowriter.cpp,
ext/opencv/iplconvkernel.cpp,
ext/opencv/cvtermcriteria.cpp,
ext/opencv/facerecognizer.cpp,
ext/opencv/cvconnectedcomp.cpp,
ext/opencv/cvconvexitydefect.cpp,
ext/opencv/cvhaarclassifiercascade.cpp

Overview

What is OpenCV?

OpenCV is “Open Source Computer Vision Library”. OpenCV is developed by Intel and many opensource developers. This library include many useful function for computer vision, such as object-detection.

OpenCV is developed at sourceforge.net

What is Ruby/OpenCV?

Ruby/OpenCV is manual Wrapper of OpenCV (not use SWIG). This library seem to be Ruby.

  • object-oriented

  • support Garbage Collection by Ruby

Ruby/OpenCV is developed rubyforge.org/projects/opencv (Official) and blueruby.mydns.jp/pages/opencv (Japanese)

How to install

Show INSTALL

How to generate this documentation?

This document created by rdoc. If you have Ruby 1.8 or later, you might use rdoc command. for example

> cd opencv
> rdoc

and show “./doc/index.html”

Defined Under Namespace

Modules: Curve, GUI, PointSet Classes: Algorithm, CvAvgComp, CvBox2D, CvCapture, CvChain, CvCircle32f, CvConnectedComp, CvContour, CvContourTree, CvConvexityDefect, CvError, CvFeatureTree, CvFont, CvHaarClassifierCascade, CvHistogram, CvHuMoments, CvLine, CvMat, CvMemStorage, CvMoments, CvPoint, CvPoint2D32f, CvPoint3D32f, CvRect, CvSURFParams, CvSURFPoint, CvScalar, CvSeq, CvSize, CvSize2D32f, CvSlice, CvTermCriteria, CvTwoPoints, CvVideoWriter, EigenFaces, FaceRecognizer, FisherFaces, IplConvKernel, IplImage, LBPH

Constant Summary collapse

CV_VERSION =

OpenCV version

rb_str_new2(CV_VERSION)
CV_MAJOR_VERSION =
INT2FIX(CV_MAJOR_VERSION)
CV_MINOR_VERSION =
INT2FIX(CV_MINOR_VERSION)
CV_SUBMINOR_VERSION =
INT2FIX(CV_SUBMINOR_VERSION)
CV_VERSION_EPOCH =
INT2FIX(CV_VERSION_EPOCH)
CV_VERSION_MAJOR =
INT2FIX(CV_VERSION_MAJOR)
CV_VERSION_MINOR =
INT2FIX(CV_VERSION_MINOR)
CV_VERSION_REVISION =
INT2FIX(CV_VERSION_REVISION)
CV_8U =

8bit unsigned

0
CV_8S =

8bit signed

1
CV_16U =

16bit unsigned

2
CV_16S =

16bit signed

3
CV_32S =

32bit signed

4
CV_32F =

32bit floating-point

5
CV_64F =

64bit floating-point

6
CV_8UC1 =

Other depth

INT2FIX(CV_8UC1)
CV_8UC2 =
INT2FIX(CV_8UC2)
CV_8UC3 =
INT2FIX(CV_8UC3)
CV_8UC4 =
INT2FIX(CV_8UC4)
CV_8SC1 =
INT2FIX(CV_8SC1)
CV_8SC2 =
INT2FIX(CV_8SC2)
CV_8SC3 =
INT2FIX(CV_8SC3)
CV_8SC4 =
INT2FIX(CV_8SC4)
CV_16UC1 =
INT2FIX(CV_16UC1)
CV_16UC2 =
INT2FIX(CV_16UC2)
CV_16UC3 =
INT2FIX(CV_16UC3)
CV_16UC4 =
INT2FIX(CV_16UC4)
CV_16SC1 =
INT2FIX(CV_16SC1)
CV_16SC2 =
INT2FIX(CV_16SC2)
CV_16SC3 =
INT2FIX(CV_16SC3)
CV_16SC4 =
INT2FIX(CV_16SC4)
CV_32SC1 =
INT2FIX(CV_32SC1)
CV_32SC2 =
INT2FIX(CV_32SC2)
CV_32SC3 =
INT2FIX(CV_32SC3)
CV_32SC4 =
INT2FIX(CV_32SC4)
CV_32FC1 =
INT2FIX(CV_32FC1)
CV_32FC2 =
INT2FIX(CV_32FC2)
CV_32FC3 =
INT2FIX(CV_32FC3)
CV_32FC4 =
INT2FIX(CV_32FC4)
CV_64FC1 =
INT2FIX(CV_64FC1)
CV_64FC2 =
INT2FIX(CV_64FC2)
CV_64FC3 =
INT2FIX(CV_64FC3)
CV_64FC4 =
INT2FIX(CV_64FC4)
CV_LOAD_IMAGE_UNCHANGED =

Color types of loaded images

INT2FIX(CV_LOAD_IMAGE_UNCHANGED)
CV_LOAD_IMAGE_GRAYSCALE =
INT2FIX(CV_LOAD_IMAGE_GRAYSCALE)
CV_LOAD_IMAGE_COLOR =
INT2FIX(CV_LOAD_IMAGE_COLOR)
CV_LOAD_IMAGE_ANYDEPTH =
INT2FIX(CV_LOAD_IMAGE_ANYDEPTH)
CV_LOAD_IMAGE_ANYCOLOR =
INT2FIX(CV_LOAD_IMAGE_ANYCOLOR)
CV_IMWRITE_JPEG_QUALITY =

Format-specific save parameters

INT2FIX(CV_IMWRITE_JPEG_QUALITY)
CV_IMWRITE_PNG_COMPRESSION =
INT2FIX(CV_IMWRITE_PNG_COMPRESSION)
CV_IMWRITE_PNG_STRATEGY =
INT2FIX(CV_IMWRITE_PNG_STRATEGY)
CV_IMWRITE_PNG_STRATEGY_DEFAULT =
INT2FIX(CV_IMWRITE_PNG_STRATEGY_DEFAULT)
CV_IMWRITE_PNG_STRATEGY_FILTERED =
INT2FIX(CV_IMWRITE_PNG_STRATEGY_FILTERED)
CV_IMWRITE_PNG_STRATEGY_HUFFMAN_ONLY =
INT2FIX(CV_IMWRITE_PNG_STRATEGY_HUFFMAN_ONLY)
CV_IMWRITE_PNG_STRATEGY_RLE =
INT2FIX(CV_IMWRITE_PNG_STRATEGY_RLE)
CV_IMWRITE_PNG_STRATEGY_FIXED =
INT2FIX(CV_IMWRITE_PNG_STRATEGY_FIXED)
CV_IMWRITE_PXM_BINARY =
INT2FIX(CV_IMWRITE_PXM_BINARY)
CV_CMP_EQ =

Comparison types

INT2FIX(CV_CMP_EQ)
CV_CMP_GT =
INT2FIX(CV_CMP_GT)
CV_CMP_GE =
INT2FIX(CV_CMP_GE)
CV_CMP_LT =
INT2FIX(CV_CMP_LT)
CV_CMP_LE =
INT2FIX(CV_CMP_LE)
CV_CMP_NE =
INT2FIX(CV_CMP_NE)
CV_MOP_OPEN =

Types of morphological operations

INT2FIX(CV_MOP_OPEN)
CV_MOP_CLOSE =
INT2FIX(CV_MOP_CLOSE)
CV_MOP_GRADIENT =
INT2FIX(CV_MOP_GRADIENT)
CV_MOP_TOPHAT =
INT2FIX(CV_MOP_TOPHAT)
CV_MOP_BLACKHAT =
INT2FIX(CV_MOP_BLACKHAT)
CV_SHAPE_RECT =

Shape of the structuring elements

INT2FIX(CV_SHAPE_RECT)
CV_SHAPE_CROSS =
INT2FIX(CV_SHAPE_CROSS)
CV_SHAPE_ELLIPSE =
INT2FIX(CV_SHAPE_ELLIPSE)
CV_SHAPE_CUSTOM =
INT2FIX(CV_SHAPE_CUSTOM)
CV_BLUR_NO_SCALE =

Types of the smoothing

INT2FIX(CV_BLUR_NO_SCALE)
CV_BLUR =
INT2FIX(CV_BLUR)
CV_GAUSSIAN =
INT2FIX(CV_GAUSSIAN)
CV_MEDIAN =
INT2FIX(CV_MEDIAN)
CV_BILATERAL =
INT2FIX(CV_BILATERAL)
CV_THRESH_BINARY =

Thresholding types

INT2FIX(CV_THRESH_BINARY)
CV_THRESH_BINARY_INV =
INT2FIX(CV_THRESH_BINARY_INV)
CV_THRESH_TRUNC =
INT2FIX(CV_THRESH_TRUNC)
CV_THRESH_TOZERO =
INT2FIX(CV_THRESH_TOZERO)
CV_THRESH_TOZERO_INV =
INT2FIX(CV_THRESH_TOZERO_INV)
CV_THRESH_OTSU =
INT2FIX(CV_THRESH_OTSU)
CV_ADAPTIVE_THRESH_GAUSSIAN_C =
INT2FIX(CV_ADAPTIVE_THRESH_GAUSSIAN_C)
CV_ADAPTIVE_THRESH_MEAN_C =
INT2FIX(CV_ADAPTIVE_THRESH_MEAN_C)
CV_DIST_L1 =

Distance transform distance types

INT2FIX(CV_DIST_L1)
CV_DIST_L2 =
INT2FIX(CV_DIST_L2)
CV_DIST_C =
INT2FIX(CV_DIST_C)
CV_DIST_MASK_3 =
INT2FIX(CV_DIST_MASK_3)
CV_DIST_MASK_5 =
INT2FIX(CV_DIST_MASK_5)
CV_DIST_MASK_PRECISE =
INT2FIX(CV_DIST_MASK_PRECISE)
CV_DIST_L12 =

Fit line distance types

INT2FIX(CV_DIST_L12)
CV_DIST_FAIR =
INT2FIX(CV_DIST_FAIR)
CV_DIST_WELSCH =
INT2FIX(CV_DIST_WELSCH)
CV_DIST_HUBER =
INT2FIX(CV_DIST_HUBER)
IPL_BORDER_CONSTANT =

Border type

INT2FIX(IPL_BORDER_CONSTANT)
IPL_BORDER_REPLICATE =
INT2FIX(IPL_BORDER_REPLICATE)
CV_RETR_EXTERNAL =

Retrieval mode

INT2FIX(CV_RETR_EXTERNAL)
CV_RETR_LIST =
INT2FIX(CV_RETR_LIST)
CV_RETR_CCOMP =
INT2FIX(CV_RETR_CCOMP)
CV_RETR_TREE =
INT2FIX(CV_RETR_TREE)
CV_CHAIN_CODE =

Approximation method

INT2FIX(CV_CHAIN_CODE)
CV_CHAIN_APPROX_NONE =
INT2FIX(CV_CHAIN_APPROX_NONE)
CV_CHAIN_APPROX_SIMPLE =
INT2FIX(CV_CHAIN_APPROX_SIMPLE)
CV_CHAIN_APPROX_TC89_L1 =
INT2FIX(CV_CHAIN_APPROX_TC89_L1)
CV_CHAIN_APPROX_TC89_KCOS =
INT2FIX(CV_CHAIN_APPROX_TC89_KCOS)
INT2FIX(CV_LINK_RUNS)
CV_TERMCRIT_ITER =

Termination criteria for iterative algorithms

INT2FIX(CV_TERMCRIT_ITER)
CV_TERMCRIT_NUMBER =
INT2FIX(CV_TERMCRIT_NUMBER)
CV_TERMCRIT_EPS =
INT2FIX(CV_TERMCRIT_EPS)
CV_HOUGH_STANDARD =

Hough transform method

INT2FIX(CV_HOUGH_STANDARD)
CV_HOUGH_PROBABILISTIC =
INT2FIX(CV_HOUGH_PROBABILISTIC)
CV_HOUGH_MULTI_SCALE =
INT2FIX(CV_HOUGH_MULTI_SCALE)
CV_HOUGH_GRADIENT =
INT2FIX(CV_HOUGH_GRADIENT)
GC_INIT_WITH_RECT =

Grab cut mode

INT2FIX(cv::GC_INIT_WITH_RECT)
GC_INIT_WITH_MASK =
INT2FIX(cv::GC_INIT_WITH_MASK)
GC_EVAL =
INT2FIX(cv::GC_EVAL)
GC_BGD =

Grab cut marker

INT2FIX(cv::GC_BGD)
GC_FGD =
INT2FIX(cv::GC_FGD)
GC_PR_BGD =
INT2FIX(cv::GC_PR_BGD)
GC_PR_FGD =
INT2FIX(cv::GC_PR_FGD)
CV_COMP_CORREL =

Histogram comparison mode

INT2FIX(CV_COMP_CORREL)
CV_COMP_CHISQR =
INT2FIX(CV_COMP_CHISQR)
CV_COMP_INTERSECT =
INT2FIX(CV_COMP_INTERSECT)
CV_COMP_BHATTACHARYYA =
INT2FIX(CV_COMP_BHATTACHARYYA)
CV_INPAINT_NS =

Inpaint method

INT2FIX(CV_INPAINT_NS)
CV_INPAINT_TELEA =
INT2FIX(CV_INPAINT_TELEA)
CV_TM_SQDIFF =

Match template method

INT2FIX(CV_TM_SQDIFF)
CV_TM_SQDIFF_NORMED =
INT2FIX(CV_TM_SQDIFF_NORMED)
CV_TM_CCORR =
INT2FIX(CV_TM_CCORR)
CV_TM_CCORR_NORMED =
INT2FIX(CV_TM_CCORR_NORMED)
CV_TM_CCOEFF =
INT2FIX(CV_TM_CCOEFF)
CV_TM_CCOEFF_NORMED =
INT2FIX(CV_TM_CCOEFF_NORMED)
CV_CONTOURS_MATCH_I1 =

Comparison method

INT2FIX(CV_CONTOURS_MATCH_I1)
CV_CONTOURS_MATCH_I2 =
INT2FIX(CV_CONTOURS_MATCH_I2)
CV_CONTOURS_MATCH_I3 =
INT2FIX(CV_CONTOURS_MATCH_I3)
CV_FM_7POINT =

Fundamental matrix computing methods

INT2FIX(CV_FM_7POINT)
CV_FM_8POINT =
INT2FIX(CV_FM_8POINT)
CV_FM_RANSAC =
INT2FIX(CV_FM_RANSAC)
CV_FM_LMEDS =
INT2FIX(CV_FM_LMEDS)
CV_WINDOW_AUTOSIZE =

Flags of window

INT2FIX(CV_WINDOW_AUTOSIZE)
CV_WINDOW_NORMAL =
INT2FIX(CV_WINDOW_NORMAL)
CV_WINDOW_OPENGL =
INT2FIX(CV_WINDOW_OPENGL)
CV_HAAR_DO_CANNY_PRUNING =

Object detection mode

INT2FIX(CV_HAAR_DO_CANNY_PRUNING)
CV_INTER_NN =

Interpolation methods

INT2FIX(CV_INTER_NN)
CV_INTER_LINEAR =
INT2FIX(CV_INTER_LINEAR)
CV_INTER_AREA =
INT2FIX(CV_INTER_AREA)
CV_INTER_CUBIC =
INT2FIX(CV_INTER_CUBIC)
CV_INTER_LANCZOS4 =
INT2FIX(CV_INTER_LANCZOS4)
CV_WARP_FILL_OUTLIERS =

Warp affine optional flags

INT2FIX(CV_WARP_FILL_OUTLIERS)
CV_WARP_INVERSE_MAP =
INT2FIX(CV_WARP_INVERSE_MAP)
CV_SVD_MODIFY_A =

SVD optional flags

INT2FIX(CV_SVD_MODIFY_A)
CV_SVD_U_T =
INT2FIX(CV_SVD_U_T)
CV_SVD_V_T =
INT2FIX(CV_SVD_V_T)
CV_NORM_INF =

Norm types

INT2FIX(cv::NORM_INF)
CV_NORM_L1 =
INT2FIX(cv::NORM_L1)
CV_NORM_L2 =
INT2FIX(cv::NORM_L2)
CV_NORM_MINMAX =
INT2FIX(cv::NORM_MINMAX)
CV_HIST_ARRAY =

Histogram representation format

INT2FIX(CV_HIST_ARRAY)
CV_HIST_SPARSE =
INT2FIX(CV_HIST_SPARSE)
CV_HIST_TREE =
INT2FIX(CV_HIST_TREE)
CV_HIST_UNIFORM =
INT2FIX(CV_HIST_UNIFORM)
CV_DXT_FORWARD =

DFT and DCT flags

INT2FIX(CV_DXT_FORWARD)
CV_DXT_INVERSE =
INT2FIX(CV_DXT_INVERSE)
CV_DXT_SCALE =
INT2FIX(CV_DXT_SCALE)
CV_DXT_INV_SCALE =
INT2FIX(CV_DXT_INV_SCALE)
CV_DXT_INVERSE_SCALE =
INT2FIX(CV_DXT_INVERSE_SCALE)
CV_DXT_ROWS =
INT2FIX(CV_DXT_ROWS)
CV_CALIB_CB_ADAPTIVE_THRESH =

FindChessboardCorners flags

INT2FIX(CV_CALIB_CB_ADAPTIVE_THRESH)
CV_CALIB_CB_NORMALIZE_IMAGE =
INT2FIX(CV_CALIB_CB_NORMALIZE_IMAGE)
CV_CALIB_CB_FILTER_QUADS =
INT2FIX(CV_CALIB_CB_FILTER_QUADS)
CV_CALIB_CB_FAST_CHECK =
INT2FIX(CV_CALIB_CB_FAST_CHECK)
COLORMAP_AUTUMN =

:applyColorMap

Color map for cv
COLORMAP_BONE =
INT2FIX(cv::COLORMAP_BONE)
COLORMAP_JET =
INT2FIX(cv::COLORMAP_JET)
COLORMAP_WINTER =
INT2FIX(cv::COLORMAP_WINTER)
COLORMAP_RAINBOW =
INT2FIX(cv::COLORMAP_RAINBOW)
COLORMAP_OCEAN =
INT2FIX(cv::COLORMAP_OCEAN)
COLORMAP_SUMMER =
INT2FIX(cv::COLORMAP_SUMMER)
COLORMAP_SPRING =
INT2FIX(cv::COLORMAP_SPRING)
COLORMAP_COOL =
INT2FIX(cv::COLORMAP_COOL)
COLORMAP_HSV =
INT2FIX(cv::COLORMAP_HSV)
COLORMAP_PINK =
INT2FIX(cv::COLORMAP_PINK)
COLORMAP_HOT =
INT2FIX(cv::COLORMAP_HOT)
INVERSION_METHOD =

lu, :svd, :svd_sym(:svd_symmetric)}: Inversion method

{
DXT_FLAG =

forward, :inverse, :scale, :rows}: DFT and DCT flags

{
INTERPOLATION_METHOD =

nn, :linear, :area, :cubic}: Interpolation method

{
WARP_FLAG =

fill_outliers, :inverse_map}: Warp affine optional flags

{
HOMOGRAPHY_CALC_METHOD =

all, :ransac, :lmeds}: Methods used to computed homography matrix

{
DEPTH =

cv8u, :cv8s, :cv16u, :cv16s, :cv32s, :cv32f, :cv64f}: Depth of each pixel.

{
CONNECTIVITY =

aa(:anti_alias)}: Determined by the closeness of pixel values

{
STRUCTURING_ELEMENT_SHAPE =

rect, :cross, :ellipse, :custom}: Shape of the structuring elements

{
RETRIEVAL_MODE =

external, :list, :ccomp, :tree}: Retrieval mode

{
APPROX_CHAIN_METHOD =

code, :approx_none, :approx_simple, :apporx_tc89_11, :approx_tc89_kcos}: Approximation method

{
APPROX_POLY_METHOD =

dp}: Approximation method (polygon)

{
MATCH_TEMPLATE_METHOD =

sqdiff, :sqdiff_normed, :ccorr, :ccorr_normed, :ccoeff, :ccoeff_normed}: Match template method

{
MORPHOLOGICAL_OPERATION =

open, :close, :gradient, :tophat, :blackhat}: Types of morphological operations

{
SMOOTHING_TYPE =

blur_no_scale, :blur, :gaussian, :median, :bilateral}: Types of smoothing

{
ADAPTIVE_METHOD =

mean_c, :gaussian_c}: Adaptive thresholding algorithm

{
THRESHOLD_TYPE =

binary, :binary_inv, :trunc, :tozero, :tozero_inv, :otsu} : Thresholding types

{
HOUGH_TRANSFORM_METHOD =

standard, :probabilistic, :multi_scale} : Hough transform method

{
INPAINT_METHOD =

ns, :telea} : Inpaint method

{
COMPARE_HIST_METHOD =

histogram comparison method method

compare_hist_method
COMPARISON_METHOD =

Comparison method

comparison_method
CvColor =

class

CvScalar
CvTerm =

class

CvTermCriteria

Class Method Summary collapse

Class Method Details

.BayerBG2BGRObject

.BayerBG2RGBObject

.BayerGB2BGRObject

.BayerGB2RGBObject

.BayerGR2BGRObject

.BayerGR2RGBObject

.BayerRG2BGRObject

.BayerRG2RGBObject

.BGR2BGR555Object

.BGR2BGR565Object

.BGR2BGRAObject

color convert methods

.BGR2GRAYObject

.BGR2HLSObject

.BGR2HSVObject

.BGR2LabObject

.BGR2LuvObject

.BGR2RGBObject

.BGR2RGBAObject

.BGR2XYZObject

.BGR2YCrCbObject

.BGR5552BGRObject

.BGR5552BGRAObject

.BGR5552GRAYObject

.BGR5552RGBObject

.BGR5552RGBAObject

.BGR5652BGRObject

.BGR5652BGRAObject

.BGR5652GRAYObject

.BGR5652RGBObject

.BGR5652RGBAObject

.BGRA2BGRObject

.BGRA2BGR555Object

.BGRA2BGR565Object

.BGRA2GRAYObject

.BGRA2RGBObject

.BGRA2RGBAObject

.build_informationObject

.GRAY2BGRObject

.GRAY2BGR555Object

.GRAY2BGR565Object

.GRAY2BGRAObject

.GRAY2RGBObject

.GRAY2RGBAObject

.HLS2BGRObject

.HLS2RGBObject

.HSV2BGRObject

.HSV2RGBObject

.Lab2BGRObject

.Lab2RGBObject

.Luv2BGRObject

.Luv2RGBObject

.RGB2BGRObject

.RGB2BGR555Object

.RGB2BGR565Object

.RGB2BGRAObject

.RGB2GRAYObject

.RGB2HLSObject

.RGB2HSVObject

.RGB2LabObject

.RGB2LuvObject

.RGB2RGBAObject

.RGB2XYZObject

.RGB2YCrCbObject

.RGBA2BGRObject

.RGBA2BGR555Object

.RGBA2BGR565Object

.RGBA2BGRAObject

.RGBA2GRAYObject

.RGBA2RGBObject

.XYZ2BGRObject

.XYZ2RGBObject

.YCrCb2BGRObject

.YCrCb2RGBObject