public class QuadrilateralTransformation extends java.lang.Object implements IProcessImage
| Constructor and Description |
|---|
QuadrilateralTransformation(java.util.ArrayList<IntPoint> sourceQuadrilateral)
Initializes a new instance of the QuadrilateralTransformation class.
|
QuadrilateralTransformation(java.util.ArrayList<IntPoint> sourceQuadrilateral,
int newWidth,
int newHeight)
Initializes a new instance of the QuadrilateralTransformation class.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getNewHeight()
Get New height.
|
int |
getNewWidth()
Get New width.
|
java.util.ArrayList<IntPoint> |
getSourceQuadrilateral()
Get Quadrilateral's corners in source image.
|
boolean |
isAutomaticSizeCalculaton()
Is Automatic calculation of destination image.
|
boolean |
isUseInterpolation()
Specifies if bilinear interpolation should be used or not.
|
FastBitmap |
ProcessImage(FastBitmap fastBitmap)
Process image.
|
void |
setAutomaticSizeCalculaton(boolean automaticSizeCalculaton)
Set Automatic calculation of destination image
|
void |
setNewHeight(int newHeight)
Set New height.
|
void |
setNewWidth(int newWidth)
Set New width.
|
void |
setSourceQuadrilateral(java.util.ArrayList<IntPoint> sourceQuadrilateral)
Set Quadrilateral's corners in source image.
|
void |
setUseInterpolation(boolean useInterpolation)
Set if bilinear interpolation should be used or not.
|
public QuadrilateralTransformation(java.util.ArrayList<IntPoint> sourceQuadrilateral)
sourceQuadrilateral - Quadrilateral's corners.public QuadrilateralTransformation(java.util.ArrayList<IntPoint> sourceQuadrilateral, int newWidth, int newHeight)
sourceQuadrilateral - Quadrilateral's corners.newWidth - New width.newHeight - New height.public boolean isAutomaticSizeCalculaton()
public void setAutomaticSizeCalculaton(boolean automaticSizeCalculaton)
automaticSizeCalculaton - True or false.public java.util.ArrayList<IntPoint> getSourceQuadrilateral()
public void setSourceQuadrilateral(java.util.ArrayList<IntPoint> sourceQuadrilateral)
sourceQuadrilateral - Quadrilateral's corners.public int getNewWidth()
public void setNewWidth(int newWidth)
newWidth - New width.public int getNewHeight()
public void setNewHeight(int newHeight)
newHeight - New height.public boolean isUseInterpolation()
public void setUseInterpolation(boolean useInterpolation)
useInterpolation - True or false.public FastBitmap ProcessImage(FastBitmap fastBitmap)
IProcessImageProcessImage in interface IProcessImagefastBitmap - Image to be processed.