public class CoordinateTransformMap2D extends Object implements CoordinateTransform
CoordinateTransform that is saved as a LUT on integer coordinates.| Modifier and Type | Field and Description |
|---|---|
protected int |
height |
protected float[][] |
map
target coordinates addressed interleaved as
map[ row ][ 2 * column ] = x
map[ row ][ 2 * column + 1 ] = y
|
protected int |
width |
| Constructor and Description |
|---|
CoordinateTransformMap2D(CoordinateTransform t,
int width,
int height) |
CoordinateTransformMap2D(FileInputStream fis) |
CoordinateTransformMap2D(float[][] map) |
| Modifier and Type | Method and Description |
|---|---|
double[] |
apply(double[] location)
Apply the
CoordinateTransform to a location. |
void |
applyInPlace(double[] location)
Apply the
CoordinateTransform to a location. |
void |
export(FileOutputStream fos) |
int |
getHeight() |
int |
getWidth() |
protected final float[][] map
protected final int width
protected final int height
public CoordinateTransformMap2D(float[][] map)
public CoordinateTransformMap2D(CoordinateTransform t, int width, int height)
public CoordinateTransformMap2D(FileInputStream fis) throws IOException
IOExceptionpublic final int getWidth()
public final int getHeight()
public final void export(FileOutputStream fos) throws IOException
IOExceptionpublic final double[] apply(double[] location)
CoordinateTransformCoordinateTransform to a location.apply in interface CoordinateTransformpublic final void applyInPlace(double[] location)
CoordinateTransformCoordinateTransform to a location.applyInPlace in interface CoordinateTransformCopyright © 2015–2021 Fiji. All rights reserved.