public abstract class AbstractLUTGrid extends Object implements InvertibleRealTransform
Modifier and Type | Field and Description |
---|---|
protected RealRandomAccess<RealComposite<DoubleType>> |
access |
protected RealRandomAccessible<RealComposite<DoubleType>> |
coefficients |
protected RealComposite<DoubleType> |
currentLut |
protected Dimensions |
dimensions |
protected InterpolatorFactory<RealComposite<DoubleType>,RandomAccessible<RealComposite<DoubleType>>> |
interpolatorFactory |
protected RandomAccessibleInterval<DoubleType> |
lutArray |
protected int |
lutMaxIndex
NOT THREADSAFE, AS TO MEMBER 'access' -- THINK ABOUT CHANGING IT!!
|
protected int |
nNonTransformedCoordinates |
protected int |
numSourceDimensions |
protected int |
numTargetDimensions |
protected double[] |
scale |
protected double[] |
shift |
Constructor and Description |
---|
AbstractLUTGrid(int numSourceDimensions,
int numTargetDimensions,
RandomAccessibleInterval<DoubleType> lutArray) |
AbstractLUTGrid(int numSourceDimensions,
int numTargetDimensions,
RandomAccessibleInterval<DoubleType> lutArray,
double[] scale,
double[] shift) |
Modifier and Type | Method and Description |
---|---|
protected double |
apply(double lutCoordinate) |
protected double |
applyChecked(double lutCoordinate) |
double |
applyInverse(double realLutCoordinate) |
double |
applyInverseChecked(double realLutCoordinate) |
protected void |
copyAndFillIfNecessary(double[] source,
double[] target) |
protected int |
findFloorIndex(double realLutCoordinate)
Implemented as bin-search.
|
double |
maxTransformedCoordinate(double[] gridCoordinates) |
double |
minTransformedCoordinate(double[] gridCoordinates) |
int |
numSourceDimensions() |
int |
numTargetDimensions() |
protected void |
updateCoordinates(double[] gridCoordinates) |
protected void |
updateCoordinates(float[] gridCoordinates) |
protected void |
updateCoordinates(RealLocalizable gridCoordinates) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyInverse, applyInverse, applyInverse, copy, inverse
apply, apply, apply, isIdentity
protected final int numSourceDimensions
protected final int numTargetDimensions
protected final int lutMaxIndex
protected final int nNonTransformedCoordinates
protected final Dimensions dimensions
protected final RandomAccessibleInterval<DoubleType> lutArray
protected final RealRandomAccessible<RealComposite<DoubleType>> coefficients
protected final InterpolatorFactory<RealComposite<DoubleType>,RandomAccessible<RealComposite<DoubleType>>> interpolatorFactory
protected RealRandomAccess<RealComposite<DoubleType>> access
protected RealComposite<DoubleType> currentLut
protected double[] scale
protected double[] shift
public AbstractLUTGrid(int numSourceDimensions, int numTargetDimensions, RandomAccessibleInterval<DoubleType> lutArray)
public AbstractLUTGrid(int numSourceDimensions, int numTargetDimensions, RandomAccessibleInterval<DoubleType> lutArray, double[] scale, double[] shift)
public int numSourceDimensions()
numSourceDimensions
in interface RealTransform
public int numTargetDimensions()
numTargetDimensions
in interface RealTransform
protected double apply(double lutCoordinate)
protected double applyChecked(double lutCoordinate)
protected int findFloorIndex(double realLutCoordinate)
public double applyInverse(double realLutCoordinate)
public double applyInverseChecked(double realLutCoordinate)
public double minTransformedCoordinate(double[] gridCoordinates)
public double maxTransformedCoordinate(double[] gridCoordinates)
protected void updateCoordinates(double[] gridCoordinates)
protected void updateCoordinates(float[] gridCoordinates)
protected void updateCoordinates(RealLocalizable gridCoordinates)
protected void copyAndFillIfNecessary(double[] source, double[] target)
Copyright © 2015–2021 Fiji. All rights reserved.