ECodedImage2::RenderMask

Creates a Flexible Mask from a specified layer of the encoded image.

Namespace: Euresys::Open_eVision

[C++]

void RenderMask(
   EROIBW8& result
)

void RenderMask(
   EROIBW8& result,
   OEV_UINT32 layerIndex,
   int offsetX,
   int offsetY
)

void RenderMask(
   EROIBW8& result,
   OEV_UINT32 layerIndex
)

void RenderMask(
   EROIBW8& result,
   int offsetX,
   int offsetY
)

Parameters

result

The image in which the generated mask will be stored.

layerIndex

The index of the layer of interest. If this parameter is left unspecified, the default layer will serve as a source for the mask generation.

offsetX

The X-offset that must be applied to bring the zero X-coordinate in the coded image on the first column of the result image (defaults to zero).

offsetY

The Y-offset that must be applied to bring the zero Y-coordinate in the coded image on the first row of the result image (defaults to zero).

Remarks

The size of the result image will not be changed: It must be properly sized beforehand.

This methods throws an exception if no layer index is specified and if, simultaneously, the coded image contains several layers. Indeed, in such a case, no default layer exists.

ECodedImage2.RenderMask

Creates a Flexible Mask from a specified layer of the encoded image.

Namespace: Euresys.Open_eVision

[C#]

void RenderMask(
   Euresys.Open_eVision.EROIBW8 result
)

void RenderMask(
   Euresys.Open_eVision.EROIBW8 result,
   uint layerIndex,
   int offsetX,
   int offsetY
)

void RenderMask(
   Euresys.Open_eVision.EROIBW8 result,
   uint layerIndex
)

void RenderMask(
   Euresys.Open_eVision.EROIBW8 result,
   int offsetX,
   int offsetY
)

Parameters

result

The image in which the generated mask will be stored.

layerIndex

The index of the layer of interest. If this parameter is left unspecified, the default layer will serve as a source for the mask generation.

offsetX

The X-offset that must be applied to bring the zero X-coordinate in the coded image on the first column of the result image (defaults to zero).

offsetY

The Y-offset that must be applied to bring the zero Y-coordinate in the coded image on the first row of the result image (defaults to zero).

Remarks

The size of the result image will not be changed: It must be properly sized beforehand.

This methods throws an exception if no layer index is specified and if, simultaneously, the coded image contains several layers. Indeed, in such a case, no default layer exists.