public class ImageExtractor extends Object
| Constructor and Description |
|---|
ImageExtractor(ij.process.ImageProcessor I)
Creates a new instance of
ImageExtractor for the image I. |
| Modifier and Type | Method and Description |
|---|---|
void |
extractImage(ij.process.ImageProcessor R,
LinearMapping T)
Fills the image
R from the source image
I (referenced by this object). |
void |
extractImage(ij.process.ImageProcessor R,
Point2D[] sourcePnts)
Extracts a warped sub-image of the associated target image I,
defined by a sequence of 3 or 4 points.
|
ij.process.ImageProcessor |
extractImage(int width,
int height,
LinearMapping T)
Extracts an image
R of size width x height from the source image
I (referenced by this object). |
ij.process.ImageProcessor |
extractImage(int width,
int height,
Point2D[] sourcePnts) |
void |
setInterpolationMethod(int interpolationMethod) |
public ImageExtractor(ij.process.ImageProcessor I)
ImageExtractor for the image I.I - the target image.public void setInterpolationMethod(int interpolationMethod)
public ij.process.ImageProcessor extractImage(int width, int height, LinearMapping T)
R of size width x height from the source image
I (referenced by this object).
The image R is extracted from a quadrilateral patch of the source image,
defined by the transformation of the boundary of R by T(x).width - the width of the target image R.height - the height of the target image R.T - a LinearMapping object.R, which is of the same type as the source image.public ij.process.ImageProcessor extractImage(int width, int height, Point2D[] sourcePnts)
public void extractImage(ij.process.ImageProcessor R, LinearMapping T)
R from the source image
I (referenced by this object).
The image R is extracted from a quadrilateral patch of the source image,
defined by the transformation of the boundary of R by T(x).
Grayscale and color images my not be mixed (i.e., R must be of the same type as I).R - the image to be filled.T - a LinearMapping object.public void extractImage(ij.process.ImageProcessor R, Point2D[] sourcePnts)
AffineMapping is used; with 4 points,
a ProjectiveMapping is used. The 3 or 4 points map clockwise to
the corner points of the target image R, starting with the top-left corner.R - the target image;sourcePnts - an array of 3 or 4 Point2D objects.Copyright © 2006–2017, Wilhelm Burger, Mark J. Burge (BSD 2-Clause Simplified License)