![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
Algorithm allowing to set the the 2d ROI of an image with the content of another image. More...
| IPSDKIPLUTILITY_API void | ipsdk::imaproc::util::putROI2dImg (const image::ImagePtr &pInOutImg, const image::ImageConstPtr &pInRoiImg, ipUInt64 xOffset, ipUInt64 yOffset) |
| wrapper function for 2d ROI insertion algorithm More... | |
| IPSDKIPLUTILITY_API void | ipsdk::imaproc::util::putROI2dImg (const image::ImageConstPtr &pInImg, const image::ImageConstPtr &pInRoiImg, ipUInt64 xOffset, ipUInt64 yOffset, const image::ImagePtr &pOutImg) |
| wrapper function for 2d ROI insertion algorithm More... | |
Algorithm allowing to set the the 2d ROI of an image with the content of another image.
This algorithm to set the the 2d ROI of an image (InImg) with the content of another image (InROIImg). The ROI is delimited by a rectangle, defined by the attribute InInputImg2dOffset and by the size of the ROI image.
InImg and OutImg have the same type and size
InImg and InROIImg have the same type, and the size of InROIImg cannot exceed the size of InImg
On output image, values are given by :
,
with
and
the sizes of InROIImg image along x-axis and y-axis, respectively.
An example of 2d ROI extraction is shown below, 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::InROIImg | [Input] ROI image for processing operation | X |
| ipsdk::imaproc::attr::InInputImg2dOffset | [Input] input image 2d offset | X |
| ipsdk::imaproc::attr::OutImg | [Output] image for processing operation | duplicateInOut (_pOutImg, _pInImg) |
Global rule description for algorithm :
ipsdk::imaproc::matchSizeAndType (_pInImg,_pOutImg) &&
ipsdk::imaproc::matchBufferType (_pInImg,_pInROIImg) &&
ipsdk::imaproc::matchSize (eMatchImageSizeType::eMIST_ZCT,_pInImg,_pInROIImg) &&
ipsdk::imaproc::customImageProperty (_pInImg,
ipsdk::imaproc::util::containsROI2d (_pInImg,_pInInputImg2dOffset,_pInROIImg))
| IPSDKIPLUTILITY_API void ipsdk::imaproc::util::putROI2dImg | ( | const image::ImagePtr & | pInOutImg, |
| const image::ImageConstPtr & | pInRoiImg, | ||
| ipUInt64 | xOffset, | ||
| ipUInt64 | yOffset | ||
| ) |
wrapper function for 2d ROI insertion algorithm
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLUTILITY_API void ipsdk::imaproc::util::putROI2dImg | ( | const image::ImageConstPtr & | pInImg, |
| const image::ImageConstPtr & | pInRoiImg, | ||
| ipUInt64 | xOffset, | ||
| ipUInt64 | yOffset, | ||
| const image::ImagePtr & | pOutImg | ||
| ) |
wrapper function for 2d ROI insertion algorithm
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
1.8.14