ECodedImage2::DrawHoleFeature
Draw a given feature Geometrical property of a coded element. of the designated hole In EasyObject, a hole is a maximally-sized area of adjacent connected pixels belonging to the layer background that is completely surrounded by an object..
Namespace: Euresys::Open_eVision
[C++]
void DrawHoleFeature(
EDrawAdapter
* graphicContext,
EDrawableFeature
feature,
OEV_UINT32 objectIndex,
OEV_UINT32 holeIndex,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
) const
void DrawHoleFeature(
EDrawAdapter
* graphicContext,
EDrawableFeature
feature,
OEV_UINT32 layerIndex,
OEV_UINT32 objectIndex,
OEV_UINT32 holeIndex,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
) const
[[deprecated("Use the overload taking an EDrawAdapter
by using an instance of EWindowsDrawAdapter
.")]]
void DrawHoleFeature(
HDC graphicContext,
EDrawableFeature
feature,
OEV_UINT32 objectIndex,
OEV_UINT32 holeIndex,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
) const
[[deprecated("Use the overload taking an EDrawAdapter
by using an instance of EWindowsDrawAdapter
.")]]
void DrawHoleFeature(
HDC graphicContext,
const ERGBColor
& color,
EDrawableFeature
feature,
OEV_UINT32 objectIndex,
OEV_UINT32 holeIndex,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
) const
[[deprecated("Use the overload taking an EDrawAdapter
by using an instance of EWindowsDrawAdapter
.")]]
void DrawHoleFeature(
HDC graphicContext,
EDrawableFeature
feature,
OEV_UINT32 layerIndex,
OEV_UINT32 objectIndex,
OEV_UINT32 holeIndex,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
) const
[[deprecated("Use the overload taking an EDrawAdapter
by using an instance of EWindowsDrawAdapter
.")]]
void DrawHoleFeature(
HDC graphicContext,
const ERGBColor
& color,
EDrawableFeature
feature,
OEV_UINT32 layerIndex,
OEV_UINT32 objectIndex,
OEV_UINT32 holeIndex,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
) const
Parameters
graphicContext
Graphic context on which to draw.
feature
The feature of interest.
objectIndex
Index of the parent 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. of the hole to draw.
holeIndex
Index of the hole to draw.
zoomX
Horizontal zooming factor. By default, no scaling is used.
zoomY
Vertical zooming factor. If set to 0
, the default value, the horizontal zooming
factor is used instead, so as to provide isotropic zooming.
panX
Horizontal panning value expressed in pixels. By default, no panning occurs.
panY
Vertical panning value expressed in pixels. By default, no panning occurs.
drawDiagonals
Specifies whether or not the diagonals of the ellipses and of the rectangles are to be drawn.
layerIndex
The index of the layer A binary image constructed by a segmentation process. of interest. If this parameter is left unspecified, the default layer will be taken into consideration.
color
The color in which to draw the overlay.
Remarks
Drawing is done in the device context associated to the desired window. The current pen is used.
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.
Trying to draw the features EDrawableFeature.FeretBox
and EDrawableFeature.WeightedGravityCenter
will
result in an exception, as they only make sense for EObjectSelection
.
ECodedImage2.DrawHoleFeature
Draw a given feature of the designated hole.
Namespace: Euresys.Open_eVision
[C#]
void DrawHoleFeature(
EDrawAdapter
graphicContext,
EDrawableFeature
feature,
uint objectIndex,
uint holeIndex,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
)
void DrawHoleFeature(
EDrawAdapter
graphicContext,
EDrawableFeature
feature,
uint layerIndex,
uint objectIndex,
uint holeIndex,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
)
[Obsolete("Use the overload taking an EDrawAdapter
by using an instance of EWindowsDrawAdapter
.")]
void DrawHoleFeature(
IntPtr graphicContext,
EDrawableFeature
feature,
uint objectIndex,
uint holeIndex,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
)
[Obsolete("Use the overload taking an EDrawAdapter
by using an instance of EWindowsDrawAdapter
.")]
void DrawHoleFeature(
IntPtr graphicContext,
ERGBColor
color,
EDrawableFeature
feature,
uint objectIndex,
uint holeIndex,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
)
[Obsolete("Use the overload taking an EDrawAdapter
by using an instance of EWindowsDrawAdapter
.")]
void DrawHoleFeature(
IntPtr graphicContext,
EDrawableFeature
feature,
uint layerIndex,
uint objectIndex,
uint holeIndex,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
)
[Obsolete("Use the overload taking an EDrawAdapter
by using an instance of EWindowsDrawAdapter
.")]
void DrawHoleFeature(
IntPtr graphicContext,
ERGBColor
color,
EDrawableFeature
feature,
uint layerIndex,
uint objectIndex,
uint holeIndex,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
)
[Obsolete("Use the overload taking an EDrawAdapter
by using an instance of EWindowsDrawAdapter
.")]
void DrawHoleFeature(
System.Drawing.Graphics graphicContext,
EDrawableFeature
feature,
uint objectIndex,
uint holeIndex,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
)
[Obsolete("Use the overload taking an EDrawAdapter
by using an instance of EWindowsDrawAdapter
.")]
void DrawHoleFeature(
System.Drawing.Graphics graphicContext,
ERGBColor
color,
EDrawableFeature
feature,
uint objectIndex,
uint holeIndex,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
)
[Obsolete("Use the overload taking an EDrawAdapter
by using an instance of EWindowsDrawAdapter
.")]
void DrawHoleFeature(
System.Drawing.Graphics graphicContext,
EDrawableFeature
feature,
uint layerIndex,
uint objectIndex,
uint holeIndex,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
)
[Obsolete("Use the overload taking an EDrawAdapter
by using an instance of EWindowsDrawAdapter
.")]
void DrawHoleFeature(
System.Drawing.Graphics graphicContext,
ERGBColor
color,
EDrawableFeature
feature,
uint layerIndex,
uint objectIndex,
uint holeIndex,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
)
Parameters
graphicContext
Graphic context on which to draw.
feature
The feature of interest.
objectIndex
Index of the parent object of the hole to draw.
holeIndex
Index of the hole to draw.
zoomX
Horizontal zooming factor. By default, no scaling is used.
zoomY
Vertical zooming factor. If set to 0
, the default value, the horizontal zooming
factor is used instead, so as to provide isotropic zooming.
panX
Horizontal panning value expressed in pixels. By default, no panning occurs.
panY
Vertical panning value expressed in pixels. By default, no panning occurs.
drawDiagonals
Specifies whether or not the diagonals of the ellipses and of the rectangles are to be drawn.
layerIndex
The index of the layer of interest. If this parameter is left unspecified, the default layer will be taken into consideration.
color
The color in which to draw the overlay.
Remarks
Drawing is done in the device context associated to the desired window. The current pen is used.
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.
Trying to draw the features EDrawableFeature.FeretBox
and EDrawableFeature.WeightedGravityCenter
will
result in an exception, as they only make sense for EObjectSelection
.
ECodedImage2.DrawHoleFeature
Draw a given feature of the designated hole.
Module: open_evision
[Python]
DrawHoleFeature(
graphicContext: EDrawAdapter
feature: EDrawableFeature
objectIndex: int
holeIndex: int
zoomX: float
zoomY: float
panX: float
panY: float
drawDiagonals: bool
) -> None
DrawHoleFeature(
graphicContext: EDrawAdapter
feature: EDrawableFeature
objectIndex: int
holeIndex: int
zoomX: float
zoomY: float
panX: float
panY: float
) -> None
DrawHoleFeature(
graphicContext: EDrawAdapter
feature: EDrawableFeature
objectIndex: int
holeIndex: int
zoomX: float
zoomY: float
panX: float
) -> None
DrawHoleFeature(
graphicContext: EDrawAdapter
feature: EDrawableFeature
objectIndex: int
holeIndex: int
zoomX: float
zoomY: float
) -> None
DrawHoleFeature(
graphicContext: EDrawAdapter
feature: EDrawableFeature
objectIndex: int
holeIndex: int
zoomX: float
) -> None
DrawHoleFeature(
graphicContext: EDrawAdapter
feature: EDrawableFeature
objectIndex: int
holeIndex: int
) -> None
DrawHoleFeature(
graphicContext: EDrawAdapter
feature: EDrawableFeature
layerIndex: int
objectIndex: int
holeIndex: int
zoomX: float
zoomY: float
panX: float
panY: float
drawDiagonals: bool
) -> None
DrawHoleFeature(
graphicContext: EDrawAdapter
feature: EDrawableFeature
layerIndex: int
objectIndex: int
holeIndex: int
zoomX: float
zoomY: float
panX: float
panY: float
) -> None
Parameters
graphicContext
Graphic context on which to draw.
feature
The feature of interest.
objectIndex
Index of the parent object of the hole to draw.
holeIndex
Index of the hole to draw.
zoomX
Horizontal zooming factor. By default, no scaling is used.
zoomY
Vertical zooming factor. If set to 0
, the default value, the horizontal zooming
factor is used instead, so as to provide isotropic zooming.
panX
Horizontal panning value expressed in pixels. By default, no panning occurs.
panY
Vertical panning value expressed in pixels. By default, no panning occurs.
drawDiagonals
Specifies whether or not the diagonals of the ellipses and of the rectangles are to be drawn.
layerIndex
The index of the layer of interest. If this parameter is left unspecified, the default layer will be taken into consideration.
Remarks
Drawing is done in the device context associated to the desired window. The current pen is used.
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.
Trying to draw the features EDrawableFeature.FeretBox
and EDrawableFeature.WeightedGravityCenter
will
result in an exception, as they only make sense for EObjectSelection
.