EasyImage::Contour
Follows the contour of an object In a general content, the term object should be understood with the meaning of a class instance. In EasyObject, an object is a maximally-sized area of adjacent connected pixels belonging to the layer foreground..
Namespace: Euresys::Open_eVision
[C++]
static void Contour(
EROIBW8
* sourceImage,
EContourMode
contourMode,
int startX,
int startY,
EContourThreshold
thresholdMode,
OEV_UINT32 threshold,
EConnexity
connexity,
EPathVector
* path
)
static void Contour(
EROIBW16
* sourceImage,
EContourMode
contourMode,
int startX,
int startY,
EContourThreshold
thresholdMode,
OEV_UINT32 threshold,
EConnexity
connexity,
EPathVector
* path
)
static void Contour(
EROIBW8
* sourceImage,
EContourMode
contourMode,
int startX,
int startY,
EContourThreshold
thresholdMode,
OEV_UINT32 threshold,
EConnexity
connexity,
EBW8PathVector
* path,
bool freeman
)
static void Contour(
EROIBW16
* sourceImage,
EContourMode
contourMode,
int startX,
int startY,
EContourThreshold
thresholdMode,
OEV_UINT32 threshold,
EConnexity
connexity,
EBW16PathVector
* path,
bool freeman
)
Parameters
sourceImage
Pointer to the source image/ROI.
contourMode
Traversal mode, as defined by EContourMode
.
startX
Start point abscissa.
startY
Start point ordinate.
thresholdMode
Thresholding mode as defined by EThresholdMode
.
threshold
Threshold level.
connexity
Contour connexity, as defined by EConnexity
.
path
Pointer to the destination vector.
freeman
Specifies if Freeman codes are to be retrieved rather than pixel values.
Remarks
A threshold is applied so that objects become blobs. The contour is a closed or not (see property Get/SetClosed
)
connected path, forming the boundary of the blob Synonym of object..
When destination vector is an EBW8PathVector
or a EBW16PathVector
, this vector can contain two different information.
If the bFreeman
argument is false
, which is the default value, member m_bw8(16)Pixel
in the vector
elements contains the gray-level value of the contour pixels. If it is true
, the member instead gives the Freeman
code leading from a pixel to next. The Freeman codes are numbered from 0 in the horizontal direction and incremented
anticlockwise.
Freeman code, leading from a pixel to another adjacent pixel
EasyImage.Contour
Follows the contour of an object.
Namespace: Euresys.Open_eVision
[C#]
static void Contour(
EROIBW8
sourceImage,
EContourMode
contourMode,
int startX,
int startY,
EContourThreshold
thresholdMode,
uint threshold,
EConnexity
connexity,
EPathVector
path
)
static void Contour(
EROIBW16
sourceImage,
EContourMode
contourMode,
int startX,
int startY,
EContourThreshold
thresholdMode,
uint threshold,
EConnexity
connexity,
EPathVector
path
)
static void Contour(
EROIBW8
sourceImage,
EContourMode
contourMode,
int startX,
int startY,
EContourThreshold
thresholdMode,
uint threshold,
EConnexity
connexity,
EBW8PathVector
path,
bool freeman
)
static void Contour(
EROIBW16
sourceImage,
EContourMode
contourMode,
int startX,
int startY,
EContourThreshold
thresholdMode,
uint threshold,
EConnexity
connexity,
EBW16PathVector
path,
bool freeman
)
Parameters
sourceImage
Pointer to the source image/ROI.
contourMode
Traversal mode, as defined by EContourMode
.
startX
Start point abscissa.
startY
Start point ordinate.
thresholdMode
Thresholding mode as defined by EThresholdMode
.
threshold
Threshold level.
connexity
Contour connexity, as defined by EConnexity
.
path
Pointer to the destination vector.
freeman
Specifies if Freeman codes are to be retrieved rather than pixel values.
Remarks
A threshold is applied so that objects become blobs. The contour is a closed or not (see property Get/SetClosed
)
connected path, forming the boundary of the blob.
When destination vector is an EBW8PathVector
or a EBW16PathVector
, this vector can contain two different information.
If the bFreeman
argument is false
, which is the default value, member m_bw8(16)Pixel
in the vector
elements contains the gray-level value of the contour pixels. If it is true
, the member instead gives the Freeman
code leading from a pixel to next. The Freeman codes are numbered from 0 in the horizontal direction and incremented
anticlockwise.
Freeman code, leading from a pixel to another adjacent pixel
EasyImage.Contour
Follows the contour of an object.
Module: open_evision
[Python]
@staticmethod
Contour(
sourceImage: EROIBW8
contourMode: EContourMode
startX: int
startY: int
thresholdMode: EContourThreshold
threshold: int
connexity: EConnexity
path: EPathVector
) -> None
@staticmethod
Contour(
sourceImage: EROIBW16
contourMode: EContourMode
startX: int
startY: int
thresholdMode: EContourThreshold
threshold: int
connexity: EConnexity
path: EPathVector
) -> None
@staticmethod
Contour(
sourceImage: EROIBW8
contourMode: EContourMode
startX: int
startY: int
thresholdMode: EContourThreshold
threshold: int
connexity: EConnexity
path: EBW8PathVector
freeman: bool
) -> None
@staticmethod
Contour(
sourceImage: EROIBW8
contourMode: EContourMode
startX: int
startY: int
thresholdMode: EContourThreshold
threshold: int
connexity: EConnexity
path: EBW8PathVector
) -> None
@staticmethod
Contour(
sourceImage: EROIBW16
contourMode: EContourMode
startX: int
startY: int
thresholdMode: EContourThreshold
threshold: int
connexity: EConnexity
path: EBW16PathVector
freeman: bool
) -> None
@staticmethod
Contour(
sourceImage: EROIBW16
contourMode: EContourMode
startX: int
startY: int
thresholdMode: EContourThreshold
threshold: int
connexity: EConnexity
path: EBW16PathVector
) -> None
Parameters
sourceImage
Pointer to the source image/ROI.
contourMode
Traversal mode, as defined by EContourMode
.
startX
Start point abscissa.
startY
Start point ordinate.
thresholdMode
Thresholding mode as defined by EThresholdMode
.
threshold
Threshold level.
connexity
Contour connexity, as defined by EConnexity
.
path
Pointer to the destination vector.
freeman
Specifies if Freeman codes are to be retrieved rather than pixel values.
Remarks
A threshold is applied so that objects become blobs. The contour is a closed or not (see property Get/SetClosed
)
connected path, forming the boundary of the blob.
When destination vector is an EBW8PathVector
or a EBW16PathVector
, this vector can contain two different information.
If the bFreeman
argument is false
, which is the default value, member m_bw8(16)Pixel
in the vector
elements contains the gray-level value of the contour pixels. If it is true
, the member instead gives the Freeman
code leading from a pixel to next. The Freeman codes are numbered from 0 in the horizontal direction and incremented
anticlockwise.
Freeman code, leading from a pixel to another adjacent pixel