public class Affine3D<T extends NumericType<T>> extends AbstractAffine3D<T>
Resample
instead.
Expects a matrix of 12 elements
For 2D image it will do:
AffineModel2D aff = new AffineModel2D();
aff.set(m[0], m[4], m[1], m[5], m[3], m[7]);
For 3D image it will do:
AffineModel3D aff = new AffineModel3D();
aff.set(m[0], m[1], m[2], m[3],
m[4], m[5], m[6], m[7],
m[8], m[9], m[10], m[11]);
For RGBA images, each channel will be transformed independently. Hence,
the operation will take 4 times as long and require 4 times the memory of a single operation.AbstractAffine3D.Mode
BEST, LINEAR, NEAREST_NEIGHBOR
calibration, cursors, display, name
Constructor and Description |
---|
Affine3D(Image<T> img,
float[] matrix,
AbstractAffine3D.Mode mode) |
Affine3D(Object fn,
float[] matrix,
AbstractAffine3D.Mode mode,
Number outside) |
Affine3D(Object fn,
float[] matrix,
AbstractAffine3D.Mode mode,
OutOfBoundsStrategyFactory<T> oobf) |
Affine3D(Object fn,
float scaleX,
float shearX,
float shearY,
float scaleY,
float translateX,
float translateY,
AbstractAffine3D.Mode mode,
Number outside) |
Affine3D(Object fn,
float scaleX,
float shearX,
float shearY,
float scaleY,
float translateX,
float translateY,
AbstractAffine3D.Mode mode,
OutOfBoundsStrategyFactory<T> oobf) |
add, addAll, addCursor, clear, clone, close, closeAllCursors, contains, containsAll, createCursor, createInterpolator, createLocalizableByDimCursor, createLocalizableByDimCursor, createLocalizableCursor, createLocalizablePlaneCursor, createNewImage, createNewImage, createNewImage, createNewImage, createPositionArray, createType, createUniqueId, getActiveCursors, getCalibration, getCalibration, getContainer, getContainerFactory, getCursors, getCursors, getDimension, getDimensions, getDimensions, getDisplay, getImageFactory, getName, getNumActiveCursors, getNumCursors, getNumDimensions, getNumPixels, isEmpty, iterator, remove, removeAll, removeAllCursors, removeCursor, retainAll, setCalibration, setCalibration, setDefaultDisplay, setDisplay, setName, size, toArray, toArray, toString
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
equals, hashCode, parallelStream, removeIf, spliterator, stream
public Affine3D(Image<T> img, float[] matrix, AbstractAffine3D.Mode mode) throws Exception
Exception
public Affine3D(Object fn, float[] matrix, AbstractAffine3D.Mode mode, Number outside) throws Exception
Exception
public Affine3D(Object fn, float[] matrix, AbstractAffine3D.Mode mode, OutOfBoundsStrategyFactory<T> oobf) throws Exception
Exception
public Affine3D(Object fn, float scaleX, float shearX, float shearY, float scaleY, float translateX, float translateY, AbstractAffine3D.Mode mode, Number outside) throws Exception
Exception
public Affine3D(Object fn, float scaleX, float shearX, float shearY, float scaleY, float translateX, float translateY, AbstractAffine3D.Mode mode, OutOfBoundsStrategyFactory<T> oobf) throws Exception
Exception
Copyright © 2015–2021 Fiji. All rights reserved.