ImageEn, unit ievision

TIEVisionImage.convertColor

TIEVisionImage.convertColor


Declaration

function convertColor(dst: TIEVisionImage; code: TIEVisionCvtColorCode): TIEVisionImage; overload; safecall;
function convertColor(code: TIEVisionCvtColorCode): TIEVisionImage; overload; safecall;


Description

Convert from one color space to another.
First overload stores the resulting image into specified destination. Returns the destination object.
Second overload updates the current image. Returns itself.

Channels format and channels count are set automatically.

Parameter Description
dst Container for the destination image
code Specifies source and destination color space


Example

// Convert a BGR image to gray scale
image.convertColor(ievBGR2GRAY);