EasyImage::ScaleRotate
Re-scales an image by an arbitrary factor and/or rotates it by an arbitrary angle.
Namespace: Euresys::Open_eVision
[C++]
void ScaleRotate(
EROIBW8* sourceImage,
float sourceImagePivotX,
float sourceImagePivotY,
float destinationImagePivotX,
float destinationImagePivotY,
float scaleX,
float scaleY,
float rotation,
EROIBW8* destinationImage,
int interpolationBits
)
void ScaleRotate(
EROIC24* sourceImage,
float sourceImagePivotX,
float sourceImagePivotY,
float destinationImagePivotX,
float destinationImagePivotY,
float scaleX,
float scaleY,
float rotation,
EROIC24* destinationImage,
int interpolationBits
)
void ScaleRotate(
EROIBW16* sourceImage,
float sourceImagePivotX,
float sourceImagePivotY,
float destinationImagePivotX,
float destinationImagePivotY,
float scaleX,
float scaleY,
float rotation,
EROIBW16* destinationImage,
int interpolationBits
)
void ScaleRotate(
EROIBW8* sourceImage,
const ERegion& region,
float sourceImagePivotX,
float sourceImagePivotY,
float destinationImagePivotX,
float destinationImagePivotY,
float scaleX,
float scaleY,
float rotation,
EROIBW8* destinationImage,
int interpolationBits
)
void ScaleRotate(
EROIC24* sourceImage,
const ERegion& region,
float sourceImagePivotX,
float sourceImagePivotY,
float destinationImagePivotX,
float destinationImagePivotY,
float scaleX,
float scaleY,
float rotation,
EROIC24* destinationImage,
int interpolationBits
)
void ScaleRotate(
EROIBW16* sourceImage,
const ERegion& region,
float sourceImagePivotX,
float sourceImagePivotY,
float destinationImagePivotX,
float destinationImagePivotY,
float scaleX,
float scaleY,
float rotation,
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
Anti-clockwise 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
region
Region to apply the function on.
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. The pivot point reference coordinates are based on the 'Pixel Coordinate System', meaning that the origin (0, 0) is the center of the top left pixel of the image.
Out-of-image-bounds pixels are black.
When using a region, only the pixels contained in this region will be taken into account.
EasyImage.ScaleRotate
Re-scales an image by an arbitrary factor and/or rotates it by an arbitrary angle.
Namespace: Euresys.Open_eVision
[C#]
void ScaleRotate(
Euresys.Open_eVision.EROIBW8 sourceImage,
float sourceImagePivotX,
float sourceImagePivotY,
float destinationImagePivotX,
float destinationImagePivotY,
float scaleX,
float scaleY,
float rotation,
Euresys.Open_eVision.EROIBW8 destinationImage,
int interpolationBits
)
void ScaleRotate(
Euresys.Open_eVision.EROIC24 sourceImage,
float sourceImagePivotX,
float sourceImagePivotY,
float destinationImagePivotX,
float destinationImagePivotY,
float scaleX,
float scaleY,
float rotation,
Euresys.Open_eVision.EROIC24 destinationImage,
int interpolationBits
)
void ScaleRotate(
Euresys.Open_eVision.EROIBW16 sourceImage,
float sourceImagePivotX,
float sourceImagePivotY,
float destinationImagePivotX,
float destinationImagePivotY,
float scaleX,
float scaleY,
float rotation,
Euresys.Open_eVision.EROIBW16 destinationImage,
int interpolationBits
)
void ScaleRotate(
Euresys.Open_eVision.EROIBW8 sourceImage,
Euresys.Open_eVision.ERegion region,
float sourceImagePivotX,
float sourceImagePivotY,
float destinationImagePivotX,
float destinationImagePivotY,
float scaleX,
float scaleY,
float rotation,
Euresys.Open_eVision.EROIBW8 destinationImage,
int interpolationBits
)
void ScaleRotate(
Euresys.Open_eVision.EROIC24 sourceImage,
Euresys.Open_eVision.ERegion region,
float sourceImagePivotX,
float sourceImagePivotY,
float destinationImagePivotX,
float destinationImagePivotY,
float scaleX,
float scaleY,
float rotation,
Euresys.Open_eVision.EROIC24 destinationImage,
int interpolationBits
)
void ScaleRotate(
Euresys.Open_eVision.EROIBW16 sourceImage,
Euresys.Open_eVision.ERegion region,
float sourceImagePivotX,
float sourceImagePivotY,
float destinationImagePivotX,
float destinationImagePivotY,
float scaleX,
float scaleY,
float rotation,
Euresys.Open_eVision.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
Anti-clockwise 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
region
Region to apply the function on.
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. The pivot point reference coordinates are based on the 'Pixel Coordinate System', meaning that the origin (0, 0) is the center of the top left pixel of the image.
Out-of-image-bounds pixels are black.
When using a region, only the pixels contained in this region will be taken into account.