ECodedImage2::RenderMask

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

Namespace: Euresys::Open_eVision

[C++]

void RenderMask(
   EROIBW8& result
) const

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

void RenderMask(
   EROIBW8& result,
   unsigned int layerIndex
) const

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

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(
   EROIBW8 result
)

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

void RenderMask(
   EROIBW8 result,
   uint 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.

Module: open_evision

[Python]

RenderMask(
    result: EROIBW8
) -> None

RenderMask(
    result: EROIBW8
    layerIndex: int
    offsetX: int
    offsetY: int
) -> None

RenderMask(
    result: EROIBW8
    layerIndex: int
) -> None

RenderMask(
    result: EROIBW8
    offsetX: int
    offsetY: int
) -> None

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.