Documentation Portal      

What are you looking for?

EBaseROI::SetSize

Sets the width and height of an ROI/image.

Namespace: Euresys::Open_eVision_2_6

[C++]

void SetSize(
   OEV_INT32 width,
   OEV_INT32 height
)

void SetSize(
   const EBaseROI* other
)

Parameters

width

The new requested ROI/image width.

height

The new requested ROI/image height.

other

The other ROI/image whose dimensions have to be used for the current object.

Remarks

Open eVision will allocate a new image buffer (deallocate the old image buffer) if the supplied width and height are different from the existing ones. If an external buffer has been specified by means of SetImagePtr, it will be kept only if the size does not change. Creating a new Open eVision image buffer and setting its size creates a 4-byte aligned buffer, by default. The size of an image is specified as a number of columns (width) and rows (height). The maximum image dimensions are 32767 by 32767. Furthermore, it must fit into the available memory, that depends upon the physical memory, the operating system and the memory already allocated by the process in other modules or libraries. The placement of an ROI is given by the x and y coordinates of its upper left pixel relative to its parent image, and also by its width and its height.

EBaseROI.SetSize

Sets the width and height of an ROI/image.

Namespace: Euresys.Open_eVision_2_6

[C#]

void SetSize(
   int width,
   int height
)

void SetSize(
   Euresys.Open_eVision_2_6.EBaseROI other
)

Parameters

width

The new requested ROI/image width.

height

The new requested ROI/image height.

other

The other ROI/image whose dimensions have to be used for the current object.

Remarks

Open eVision will allocate a new image buffer (deallocate the old image buffer) if the supplied width and height are different from the existing ones. If an external buffer has been specified by means of SetImagePtr, it will be kept only if the size does not change. Creating a new Open eVision image buffer and setting its size creates a 4-byte aligned buffer, by default. The size of an image is specified as a number of columns (width) and rows (height). The maximum image dimensions are 32767 by 32767. Furthermore, it must fit into the available memory, that depends upon the physical memory, the operating system and the memory already allocated by the process in other modules or libraries. The placement of an ROI is given by the x and y coordinates of its upper left pixel relative to its parent image, and also by its width and its height.

See also in the Code Snippets

Single Thresholding

Which API shall we display?

© 2018 EURESYS s.a.  -  About Documentation  -  Open Source Licenses  -  Open eVision 2.6.1.1110