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
IOException
public final int getWidth()
public final int getHeight()
public final void export(FileOutputStream fos) throws IOException
IOException
public final double[] apply(double[] location)
CoordinateTransform
CoordinateTransform
to a location.apply
in interface CoordinateTransform
public final void applyInPlace(double[] location)
CoordinateTransform
CoordinateTransform
to a location.applyInPlace
in interface CoordinateTransform
Copyright © 2015–2021 Fiji. All rights reserved.