EasyImage::ScaleRotate
Re-scales an image by an arbitrary factor and/or rotates it by an arbitrary angle.
Namespace: Euresys::Open_eVision
[C++]
static void ScaleRotate(
EROIBW8
* sourceImage,
float sourceImagePivotX,
float sourceImagePivotY,
float destinationImagePivotX,
float destinationImagePivotY,
float scaleX,
float scaleY,
float rotation,
EROIBW8
* destinationImage,
int interpolationBits
)
static void ScaleRotate(
EROIBW8
* sourceImage,
float sourceImagePivotX,
float sourceImagePivotY,
float destinationImagePivotX,
float destinationImagePivotY,
float scaleX,
float scaleY,
float rotation,
EROIBW8
* destinationImage
)
static void ScaleRotate(
EROIC24
* sourceImage,
float sourceImagePivotX,
float sourceImagePivotY,
float destinationImagePivotX,
float destinationImagePivotY,
float scaleX,
float scaleY,
float rotation,
EROIC24
* destinationImage,
int interpolationBits
)
static void ScaleRotate(
EROIC24
* sourceImage,
float sourceImagePivotX,
float sourceImagePivotY,
float destinationImagePivotX,
float destinationImagePivotY,
float scaleX,
float scaleY,
float rotation,
EROIC24
* destinationImage
)
static void ScaleRotate(
EROIBW16
* sourceImage,
float sourceImagePivotX,
float sourceImagePivotY,
float destinationImagePivotX,
float destinationImagePivotY,
float scaleX,
float scaleY,
float rotation,
EROIBW16
* destinationImage,
int interpolationBits
)
static void ScaleRotate(
EROIBW16
* sourceImage,
float sourceImagePivotX,
float sourceImagePivotY,
float destinationImagePivotX,
float destinationImagePivotY,
float scaleX,
float scaleY,
float rotation,
EROIBW16
* destinationImage
)
static 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
)
static void ScaleRotate(
EROIBW8
* sourceImage,
const ERegion
& region,
float sourceImagePivotX,
float sourceImagePivotY,
float destinationImagePivotX,
float destinationImagePivotY,
float scaleX,
float scaleY,
float rotation,
EROIBW8
* destinationImage
)
static 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
)
static void ScaleRotate(
EROIC24
* sourceImage,
const ERegion
& region,
float sourceImagePivotX,
float sourceImagePivotY,
float destinationImagePivotX,
float destinationImagePivotY,
float scaleX,
float scaleY,
float rotation,
EROIC24
* destinationImage
)
static 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
)
static void ScaleRotate(
EROIBW16
* sourceImage,
const ERegion
& region,
float sourceImagePivotX,
float sourceImagePivotY,
float destinationImagePivotX,
float destinationImagePivotY,
float scaleX,
float scaleY,
float rotation,
EROIBW16
* destinationImage
)
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 0.0
.
scaleY
Scale factor for the ordinates. Its value must be different than 0.0
.
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 0
(no interpolation, nearest neighbor), 4 (linear interpolation)
or 8 (cubic interpolation)
.
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#]
static void ScaleRotate(
EROIBW8
sourceImage,
float sourceImagePivotX,
float sourceImagePivotY,
float destinationImagePivotX,
float destinationImagePivotY,
float scaleX,
float scaleY,
float rotation,
EROIBW8
destinationImage,
int interpolationBits
)
static void ScaleRotate(
EROIBW8
sourceImage,
float sourceImagePivotX,
float sourceImagePivotY,
float destinationImagePivotX,
float destinationImagePivotY,
float scaleX,
float scaleY,
float rotation,
EROIBW8
destinationImage
)
static void ScaleRotate(
EROIC24
sourceImage,
float sourceImagePivotX,
float sourceImagePivotY,
float destinationImagePivotX,
float destinationImagePivotY,
float scaleX,
float scaleY,
float rotation,
EROIC24
destinationImage,
int interpolationBits
)
static void ScaleRotate(
EROIC24
sourceImage,
float sourceImagePivotX,
float sourceImagePivotY,
float destinationImagePivotX,
float destinationImagePivotY,
float scaleX,
float scaleY,
float rotation,
EROIC24
destinationImage
)
static void ScaleRotate(
EROIBW16
sourceImage,
float sourceImagePivotX,
float sourceImagePivotY,
float destinationImagePivotX,
float destinationImagePivotY,
float scaleX,
float scaleY,
float rotation,
EROIBW16
destinationImage,
int interpolationBits
)
static void ScaleRotate(
EROIBW16
sourceImage,
float sourceImagePivotX,
float sourceImagePivotY,
float destinationImagePivotX,
float destinationImagePivotY,
float scaleX,
float scaleY,
float rotation,
EROIBW16
destinationImage
)
static void ScaleRotate(
EROIBW8
sourceImage,
ERegion
region,
float sourceImagePivotX,
float sourceImagePivotY,
float destinationImagePivotX,
float destinationImagePivotY,
float scaleX,
float scaleY,
float rotation,
EROIBW8
destinationImage,
int interpolationBits
)
static void ScaleRotate(
EROIBW8
sourceImage,
ERegion
region,
float sourceImagePivotX,
float sourceImagePivotY,
float destinationImagePivotX,
float destinationImagePivotY,
float scaleX,
float scaleY,
float rotation,
EROIBW8
destinationImage
)
static void ScaleRotate(
EROIC24
sourceImage,
ERegion
region,
float sourceImagePivotX,
float sourceImagePivotY,
float destinationImagePivotX,
float destinationImagePivotY,
float scaleX,
float scaleY,
float rotation,
EROIC24
destinationImage,
int interpolationBits
)
static void ScaleRotate(
EROIC24
sourceImage,
ERegion
region,
float sourceImagePivotX,
float sourceImagePivotY,
float destinationImagePivotX,
float destinationImagePivotY,
float scaleX,
float scaleY,
float rotation,
EROIC24
destinationImage
)
static void ScaleRotate(
EROIBW16
sourceImage,
ERegion
region,
float sourceImagePivotX,
float sourceImagePivotY,
float destinationImagePivotX,
float destinationImagePivotY,
float scaleX,
float scaleY,
float rotation,
EROIBW16
destinationImage,
int interpolationBits
)
static void ScaleRotate(
EROIBW16
sourceImage,
ERegion
region,
float sourceImagePivotX,
float sourceImagePivotY,
float destinationImagePivotX,
float destinationImagePivotY,
float scaleX,
float scaleY,
float rotation,
EROIBW16
destinationImage
)
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 0.0
.
scaleY
Scale factor for the ordinates. Its value must be different than 0.0
.
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 0
(no interpolation, nearest neighbor), 4 (linear interpolation)
or 8 (cubic interpolation)
.
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.
Module: open_evision
[Python]
@staticmethod
ScaleRotate(
sourceImage: EROIBW8
sourceImagePivotX: float
sourceImagePivotY: float
destinationImagePivotX: float
destinationImagePivotY: float
scaleX: float
scaleY: float
rotation: float
destinationImage: EROIBW8
interpolationBits: int
) -> None
@staticmethod
ScaleRotate(
sourceImage: EROIBW8
sourceImagePivotX: float
sourceImagePivotY: float
destinationImagePivotX: float
destinationImagePivotY: float
scaleX: float
scaleY: float
rotation: float
destinationImage: EROIBW8
) -> None
@staticmethod
ScaleRotate(
sourceImage: EROIC24
sourceImagePivotX: float
sourceImagePivotY: float
destinationImagePivotX: float
destinationImagePivotY: float
scaleX: float
scaleY: float
rotation: float
destinationImage: EROIC24
interpolationBits: int
) -> None
@staticmethod
ScaleRotate(
sourceImage: EROIC24
sourceImagePivotX: float
sourceImagePivotY: float
destinationImagePivotX: float
destinationImagePivotY: float
scaleX: float
scaleY: float
rotation: float
destinationImage: EROIC24
) -> None
@staticmethod
ScaleRotate(
sourceImage: EROIBW16
sourceImagePivotX: float
sourceImagePivotY: float
destinationImagePivotX: float
destinationImagePivotY: float
scaleX: float
scaleY: float
rotation: float
destinationImage: EROIBW16
interpolationBits: int
) -> None
@staticmethod
ScaleRotate(
sourceImage: EROIBW16
sourceImagePivotX: float
sourceImagePivotY: float
destinationImagePivotX: float
destinationImagePivotY: float
scaleX: float
scaleY: float
rotation: float
destinationImage: EROIBW16
) -> None
@staticmethod
ScaleRotate(
sourceImage: EROIBW8
region: ERegion
sourceImagePivotX: float
sourceImagePivotY: float
destinationImagePivotX: float
destinationImagePivotY: float
scaleX: float
scaleY: float
rotation: float
destinationImage: EROIBW8
interpolationBits: int
) -> None
@staticmethod
ScaleRotate(
sourceImage: EROIBW8
region: ERegion
sourceImagePivotX: float
sourceImagePivotY: float
destinationImagePivotX: float
destinationImagePivotY: float
scaleX: float
scaleY: float
rotation: float
destinationImage: EROIBW8
) -> None
@staticmethod
ScaleRotate(
sourceImage: EROIC24
region: ERegion
sourceImagePivotX: float
sourceImagePivotY: float
destinationImagePivotX: float
destinationImagePivotY: float
scaleX: float
scaleY: float
rotation: float
destinationImage: EROIC24
interpolationBits: int
) -> None
@staticmethod
ScaleRotate(
sourceImage: EROIC24
region: ERegion
sourceImagePivotX: float
sourceImagePivotY: float
destinationImagePivotX: float
destinationImagePivotY: float
scaleX: float
scaleY: float
rotation: float
destinationImage: EROIC24
) -> None
@staticmethod
ScaleRotate(
sourceImage: EROIBW16
region: ERegion
sourceImagePivotX: float
sourceImagePivotY: float
destinationImagePivotX: float
destinationImagePivotY: float
scaleX: float
scaleY: float
rotation: float
destinationImage: EROIBW16
interpolationBits: int
) -> None
@staticmethod
ScaleRotate(
sourceImage: EROIBW16
region: ERegion
sourceImagePivotX: float
sourceImagePivotY: float
destinationImagePivotX: float
destinationImagePivotY: float
scaleX: float
scaleY: float
rotation: float
destinationImage: EROIBW16
) -> None
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 0.0
.
scaleY
Scale factor for the ordinates. Its value must be different than 0.0
.
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 0
(no interpolation, nearest neighbor), 4 (linear interpolation)
or 8 (cubic interpolation)
.
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.