![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
Algorithm allowing to copy a 2d ROI of an image. More...
| IPSDKIPLUTILITY_API image::ImagePtr | ipsdk::imaproc::util::getROI2dImg (const image::ImageConstPtr &pInImg, ipUInt64 xOffset, ipUInt64 yOffset, ipUInt64 xSz, ipUInt64 ySz) |
| wrapper function for 2d ROI extraction algorithm More... | |
| IPSDKIPLUTILITY_API void | ipsdk::imaproc::util::getROI2dImg (const image::ImageConstPtr &pInImg, ipUInt64 xOffset, ipUInt64 yOffset, ipUInt64 xSz, ipUInt64 ySz, const image::ImagePtr &pOutImg) |
| wrapper function for 2d ROI extraction algorithm More... | |
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:




Attribute description for algorithm :
| Name | ToolTip | Default Initializer |
|---|---|---|
| ipsdk::imaproc::attr::InImg | [Input] image for processing operation | X |
| ipsdk::imaproc::attr::InInputImg2dOffset | [Input] input image 2d offset | X |
| ipsdk::imaproc::attr::InOutputImg2dSize | [Input] output image 2d size | X |
| ipsdk::imaproc::attr::OutImg | [Output] image for processing operation | customOutput (_pOutImg, outputROI2d(_pInImg,_pInOutputImg2dSize)) |
Global rule description for algorithm :
ipsdk::imaproc::matchBufferType (_pInImg,_pOutImg) &&
ipsdk::imaproc::noInSitu (_pInImg,_pOutImg) &&
ipsdk::imaproc::customImageProperty (_pInImg,
ipsdk::imaproc::util::containsROI2d (_pInImg,_pInInputImg2dOffset,_pInOutputImg2dSize)) &&
ipsdk::imaproc::customImageProperty (_pOutImg,
ipsdk::imaproc::util::matchROI2d (_pInOutputImg2dSize)) &&
ipsdk::imaproc::matchSize (eMatchImageSizeType::eMIST_ZCT,_pInImg,_pOutImg)
| IPSDKIPLUTILITY_API image::ImagePtr ipsdk::imaproc::util::getROI2dImg | ( | const image::ImageConstPtr & | pInImg, |
| ipUInt64 | xOffset, | ||
| ipUInt64 | yOffset, | ||
| ipUInt64 | xSz, | ||
| ipUInt64 | ySz | ||
| ) |
wrapper function for 2d ROI extraction algorithm
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLUTILITY_API void ipsdk::imaproc::util::getROI2dImg | ( | const image::ImageConstPtr & | pInImg, |
| ipUInt64 | xOffset, | ||
| ipUInt64 | yOffset, | ||
| ipUInt64 | xSz, | ||
| ipUInt64 | ySz, | ||
| const image::ImagePtr & | pOutImg | ||
| ) |
wrapper function for 2d ROI extraction algorithm
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
1.8.14