Skip to main content

MimMorphicShape

BoardSupported
Host SystemYes
V4L2Yes
Clarity UHDYes
Concord PoENo
GenTLYes
GevIQYes
GigE VisionYes
IndioNo
Iris GTXYes
Radient eV-CLYes
Rapixo CLYes
Rapixo CoFYes
Rapixo CXPYes
USB3 VisionYes

Perform a morphological transformation using a predefined shape.

Syntax

void MimMorphicShape(
AIL_ID ContextId, //in
AIL_ID SrcImageBufId, //in
AIL_ID DstImageBufId, //out
AIL_DOUBLE Dimension, //in
AIL_INT64 ControlFlag //in
)

Description

This function performs morphological transformations on the specified source image, using a circular shape.

Parameters

ContextId (in, AIL_ID)

Specifies a predefined context used to perform the morphological transformation.

For specifying the predefined context

ValueDescription
M_CIRCULAR_CONTEXT_BINARY_CLOSESpecifies a binary close operation using a circle. This operation is equivalent to a circular dilation followed by a circular erosion.
M_CIRCULAR_CONTEXT_BINARY_DILATESpecifies a binary dilate operation using a circle.
M_CIRCULAR_CONTEXT_BINARY_ERODESpecifies a binary erode operation using a circle.
M_CIRCULAR_CONTEXT_BINARY_OPENSpecifies a binary open operation using a circle. This operation is equivalent to a circular erosion followed by a circular dilation.

SrcImageBufId (in, AIL_ID)

Specifies the identifier of the source image buffer.

DstImageBufId (out, AIL_ID)

Specifies the identifier of the destination buffer in which to put the result of the operation.

Dimension (in, AIL_DOUBLE)

Specifies the diameter of the circle element, in pixels.

For specifying the diameter

ValueDescription
Value >= 1Specifies the diameter of the circle element used for the morphological transformation. The value must be an odd integer.

ControlFlag (in, AIL_INT64)

Reserved for future expansion and must be set to M_DEFAULT.

Copyright © 2026 Zebra Technologies.