public class RemapProcessor extends Object implements SinglebandImageProcessor<Float,FImage>
ImageProcessor and associated static utility methods for transforming
an image based on the pixel positions given by a distortion map:
destination(x,y) = source(mapx(x,y), mapy(x,y)). This allows
efficient implementation of highly non-linear mappings.SinglebandImageProcessor.Processable<T,S extends Image<T,S>,I extends Image<?,I>>| Constructor and Description |
|---|
RemapProcessor(FImage xords,
FImage yords)
Construct with the given distortion map, and use
ImageInterpolation.InterpolationType.BILINEAR interpolation. |
RemapProcessor(FImage xords,
FImage yords,
ImageInterpolation.Interpolator interpolator)
Construct with the given distortion map and interpolator.
|
| Modifier and Type | Method and Description |
|---|---|
void |
processImage(FImage image)
Process an image.
|
static FImage |
remap(FImage in,
FImage xords,
FImage yords)
Transform an image using the given parameters.
|
static FImage |
remap(FImage in,
FImage out,
FImage xords,
FImage yords)
Transform an image using the given parameters, and write the results into
out. |
static FImage |
remap(FImage in,
FImage out,
FImage xords,
FImage yords,
ImageInterpolation interpolation)
Transform an image using the given parameters, and write te results into
out |
static FImage |
remap(FImage in,
FImage xords,
FImage yords,
ImageInterpolation.Interpolator interpolator)
Transform an image using the given parameters
|
static FImage |
remap(FImage in,
FImage xords,
FImage yords,
ImageInterpolation interpolation)
Transform an image using the given parameters
|
public RemapProcessor(FImage xords, FImage yords)
ImageInterpolation.InterpolationType.BILINEAR interpolation.xords - the x-ordinatesyords - the y-ordinatespublic RemapProcessor(FImage xords, FImage yords, ImageInterpolation.Interpolator interpolator)
xords - the x-ordinatesyords - the y-ordinatesinterpolator - the interpolatorpublic void processImage(FImage image)
ImageProcessorImage.internalAssign(Image).processImage in interface ImageProcessor<FImage>image - The image to process in place.public static FImage remap(FImage in, FImage xords, FImage yords, ImageInterpolation.Interpolator interpolator)
in - the image to transformxords - the x-ordinatesyords - the y-ordinatesinterpolator - the interpolatorpublic static FImage remap(FImage in, FImage xords, FImage yords, ImageInterpolation interpolation)
in - the image to transformxords - the x-ordinatesyords - the y-ordinatesinterpolation - the interpolationpublic static FImage remap(FImage in, FImage out, FImage xords, FImage yords, ImageInterpolation interpolation)
outin - the image to transformout - the output imagexords - the x-ordinatesyords - the y-ordinatesinterpolation - the interpolationpublic static FImage remap(FImage in, FImage xords, FImage yords)
ImageInterpolation.InterpolationType.BILINEAR interpolation.in - the image to transformxords - the x-ordinatesyords - the y-ordinatespublic static FImage remap(FImage in, FImage out, FImage xords, FImage yords)
out. Assume ImageInterpolation.InterpolationType.BILINEAR
interpolation.in - the image to transformout - the output imagexords - the x-ordinatesyords - the y-ordinates