dcv.imgproc.color

Module contains color format convertion operations.

Module contains:
rgb2gray gray2rgb rgb2hsv hsv2rgb rgb2yuv yuv2rgb

Members

Enums

Rgb2GrayConvertion
enum Rgb2GrayConvertion

RGB to Grayscale convertion strategy.

Functions

bgr2gray
Slice!(SliceKind.contiguous, [2], V*) bgr2gray(Slice!(SliceKind.contiguous, [3], V*) input, Slice!(SliceKind.contiguous, [2], V*) prealloc = emptySlice!([2], V), Rgb2GrayConvertion conv = Rgb2GrayConvertion.LUMINANCE_PRESERVE)

Convert BGR image to grayscale.

gray2rgb
Slice!(SliceKind.contiguous, [3], V*) gray2rgb(Slice!(SliceKind.contiguous, [2], V*) input, Slice!(SliceKind.contiguous, [3], V*) prealloc = emptySlice!([3], V))

Convert gray image to RGB.

hsv2rgb
Slice!(SliceKind.contiguous, [3], R*) hsv2rgb(Slice!(SliceKind.contiguous, [3], V*) input, Slice!(SliceKind.contiguous, [3], R*) prealloc = emptySlice!([3], R))

Convert HSV image to RGB color format.

rgb2gray
Slice!(SliceKind.contiguous, [2], V*) rgb2gray(Slice!(SliceKind.contiguous, [3], V*) input, Slice!(SliceKind.contiguous, [2], V*) prealloc = emptySlice!([2], V), Rgb2GrayConvertion conv = Rgb2GrayConvertion.LUMINANCE_PRESERVE)

Convert RGB image to grayscale.

rgb2hsv
Slice!(SliceKind.contiguous, [3], R*) rgb2hsv(Slice!(SliceKind.contiguous, [3], V*) input, Slice!(SliceKind.contiguous, [3], R*) prealloc = emptySlice!([3], R))

Convert RGB image to HSV color format.

rgb2yuv
Slice!(SliceKind.contiguous, [3], V*) rgb2yuv(Slice!(SliceKind.contiguous, [3], V*) input, Slice!(SliceKind.contiguous, [3], V*) prealloc = emptySlice!([3], V))

Convert RGB image format to YUV.

yuv2rgb
Slice!(SliceKind.contiguous, [3], V*) yuv2rgb(Slice!(SliceKind.contiguous, [3], V*) input, Slice!(SliceKind.contiguous, [3], V*) prealloc = emptySlice!([3], V))

Convert YUV image to RGB.

Meta

Authors

Relja Ljubobratovic

License

$(LINK3 http://www.boost.org/LICENSE_1_0.txt, Boost Software License - Version 1.0).