image = | getROI2dImg (inImg,xOffset,yOffset,xSz,ySz) |
Algorithm allowing to copy a 2d ROI of an image.
This algorithm allows to copy the region of interest, delimited by a rectangle, of an image.
The rectangle is defined by the 2 attributes InInputImg2dOffset and InOutputImg2dSize.
Output image type is the same as input.
Size of output image is given by the InOutputImg2dSize attribute.
On output image, values are given by :
,
with:
An example of 2d ROI extraction is shown below on Lena image, with the following parameters: