The function of RoiResize operator is to crop the input picture according to the ROI area, then scale the cropped ROI area to the predefined target size, and finally padding the short side according to the predefined parameters, which is commonly used to extract the ROI area in the picture and adjust the output size. The operator supports both bilinear interpolation and closest proximity interpolation, and the results of the pictures generated by different interpolation methods will be different.
| Input Image | Parameter | Output Image |
|---|---|---|
![]() | ROI= {100,200,399,359} | ![]() |
The principle of operator realization is as follows:
Among these, please refer to the hbVPResize operator for the resize procedure.
For detailed interface information, please refer to hbVPRoiResize.