EROIC24::SetPixel
Allows writing a single pixel value in the ROI or image.
Namespace: Euresys::Open_eVision
[C++]
void SetPixel(
EC24
value,
int x,
int y
)
Parameters
value
value to set the pixel to.
x
Offset of the pixel on the x axis.
y
Offset of the pixel on the y axis.
Remarks
Although coordinates outside of the ROI can be supplied, this function will raise an error condition if the coordinates are outside of the top parent image.
It should be noted that calling this function several thousand
times can be slow. The recommended way to access pixel content
in an image or ROI is to use the EBaseROI::GetImagePtr
and EBaseROI::SetImagePtr
functions.
For BW8 images/ROIs, using the C++ API only, it is possible to access
pixels data faster through an intermediate 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.: EBW8PixelAccessor.
EROIC24.SetPixel
Allows writing a single pixel value in the ROI or image.
Namespace: Euresys.Open_eVision
[C#]
void SetPixel(
EC24
value,
int x,
int y
)
Parameters
value
value to set the pixel to.
x
Offset of the pixel on the x axis.
y
Offset of the pixel on the y axis.
Remarks
Although coordinates outside of the ROI can be supplied, this function will raise an error condition if the coordinates are outside of the top parent image.
It should be noted that calling this function several thousand
times can be slow. The recommended way to access pixel content
in an image or ROI is to use the EBaseROI.GetImagePtr
and EBaseROI.SetImagePtr
functions.
For BW8 images/ROIs, using the C++ API only, it is possible to access
pixels data faster through an intermediate object: EBW8PixelAccessor.
EROIC24.SetPixel
Allows writing a single pixel value in the ROI or image.
Module: open_evision
[Python]
SetPixel(
value: EC24
x: int
y: int
) -> None
Parameters
value
value to set the pixel to.
x
Offset of the pixel on the x axis.
y
Offset of the pixel on the y axis.
Remarks
Although coordinates outside of the ROI can be supplied, this function will raise an error condition if the coordinates are outside of the top parent image.
It should be noted that calling this function several thousand
times can be slow. The recommended way to access pixel content
in an image or ROI is to use the EBaseROI.GetImagePtr
and EBaseROI.SetImagePtr
functions.
For BW8 images/ROIs, using the C++ API only, it is possible to access
pixels data faster through an intermediate object: EBW8PixelAccessor.