EasyImage::ScaleRotate
Re-scales an image by an arbitrary factor and/or rotates it by an arbitrary angle.
Namespace: Euresys::Open_eVision_2_6
[C++]
void ScaleRotate(
EROIBW8* sourceImage,
float sourceImagePivotX,
float sourceImagePivotY,
float destinationImagePivotX,
float destinationImagePivotY,
float scaleX,
float scaleY,
float rotation,
EROIBW8* destinationImage,
OEV_INT32 interpolationBits
)
void ScaleRotate(
EROIC24* sourceImage,
float sourceImagePivotX,
float sourceImagePivotY,
float destinationImagePivotX,
float destinationImagePivotY,
float scaleX,
float scaleY,
float rotation,
EROIC24* destinationImage,
OEV_INT32 interpolationBits
)
void ScaleRotate(
EROIBW16* sourceImage,
float sourceImagePivotX,
float sourceImagePivotY,
float destinationImagePivotX,
float destinationImagePivotY,
float scaleX,
float scaleY,
float rotation,
EROIBW16* destinationImage,
OEV_INT32 interpolationBits
)
Parameters
sourceImage
Pointer to the source image/ROI.
sourceImagePivotX
Pivot point abscissa in the source image.
sourceImagePivotY
Pivot point ordinate in the source image.
destinationImagePivotX
Pivot point abscissa in the destination image.
destinationImagePivotY
Pivot point ordinate in the destination image.
scaleX
Scale factor for the abscissas. Its value must be different than
scaleY
Scale factor for the ordinates. Its value must be different than
rotation
Rotation angle, using the current angle unit.
destinationImage
Pointer to the destination image/ROI. May not be the same as the source image.
interpolationBits
Number of bits of accuracy for interpolation. Allowed values are
Remarks
For resampling, the nearest neighbor rule or bilinear interpolation with 4 or 8 bits of accuracy is used. The pivot point is a given point in the source image which is mapped to a given point in the destination image. Rotation and scaling are done around the pivot point. Out-of-image-bounds pixels are black.
EasyImage.ScaleRotate
Re-scales an image by an arbitrary factor and/or rotates it by an arbitrary angle.
Namespace: Euresys.Open_eVision_2_6
[C#]
void ScaleRotate(
Euresys.Open_eVision_2_6.EROIBW8 sourceImage,
float sourceImagePivotX,
float sourceImagePivotY,
float destinationImagePivotX,
float destinationImagePivotY,
float scaleX,
float scaleY,
float rotation,
Euresys.Open_eVision_2_6.EROIBW8 destinationImage,
int interpolationBits
)
void ScaleRotate(
Euresys.Open_eVision_2_6.EROIC24 sourceImage,
float sourceImagePivotX,
float sourceImagePivotY,
float destinationImagePivotX,
float destinationImagePivotY,
float scaleX,
float scaleY,
float rotation,
Euresys.Open_eVision_2_6.EROIC24 destinationImage,
int interpolationBits
)
void ScaleRotate(
Euresys.Open_eVision_2_6.EROIBW16 sourceImage,
float sourceImagePivotX,
float sourceImagePivotY,
float destinationImagePivotX,
float destinationImagePivotY,
float scaleX,
float scaleY,
float rotation,
Euresys.Open_eVision_2_6.EROIBW16 destinationImage,
int interpolationBits
)
Parameters
sourceImage
Pointer to the source image/ROI.
sourceImagePivotX
Pivot point abscissa in the source image.
sourceImagePivotY
Pivot point ordinate in the source image.
destinationImagePivotX
Pivot point abscissa in the destination image.
destinationImagePivotY
Pivot point ordinate in the destination image.
scaleX
Scale factor for the abscissas. Its value must be different than
scaleY
Scale factor for the ordinates. Its value must be different than
rotation
Rotation angle, using the current angle unit.
destinationImage
Pointer to the destination image/ROI. May not be the same as the source image.
interpolationBits
Number of bits of accuracy for interpolation. Allowed values are
Remarks
For resampling, the nearest neighbor rule or bilinear interpolation with 4 or 8 bits of accuracy is used. The pivot point is a given point in the source image which is mapped to a given point in the destination image. Rotation and scaling are done around the pivot point. Out-of-image-bounds pixels are black.