public class BigWarpToDeformationFieldPlugIn extends Object implements ij.plugin.PlugIn
Modifier and Type | Field and Description |
---|---|
static String[] |
compressionOptions |
Constructor and Description |
---|
BigWarpToDeformationFieldPlugIn() |
Modifier and Type | Method and Description |
---|---|
static boolean |
areTransformsTheSame(RealTransform xfm1,
RealTransform xfm2,
Interval itvl,
double EPS) |
static FloatImagePlus<FloatType> |
convertToDeformationField(long[] dims,
RealTransform transform,
AffineGet pixToPhysical,
int nThreads) |
static long[] |
dimensionsFromImagePlus(ij.ImagePlus ref_imp) |
static <T extends RealType<T>> |
fromRealTransform(RealTransform transform,
AffineGet pixelToPhysical,
RandomAccessibleInterval<T> deformationField)
Converts a
RealTransform into a deformation field. |
static <T extends RealType<T>> |
fromRealTransform(RealTransform transform,
AffineGet pixelToPhysical,
RandomAccessibleInterval<T> deformationField,
int nThreads)
Converts a
RealTransform into a deformation field. |
static void |
main(String[] args) |
void |
run(String arg) |
<T> void |
runFromBigWarpInstance(LandmarkTableModel landmarkModel,
List<SourceAndConverter<T>> sources,
int[] targetSourceIndexList) |
static AffineGet |
toAffine(ThinPlateR2LogRSplineKernelTransform tps) |
static double[] |
toFlatAffine(ThinPlateR2LogRSplineKernelTransform tps) |
static ij.ImagePlus |
toImagePlus(LandmarkTableModel ltm,
boolean ignoreAffine,
long[] dims,
double[] spacing,
int nThreads) |
static void |
writeN5(String n5BasePath,
LandmarkTableModel ltm,
long[] dims,
double[] spacing,
int[] spatialBlockSize,
org.janelia.saalfeldlab.n5.Compression compression,
int nThreads) |
static void |
writeN5(String n5BasePath,
String n5Dataset,
LandmarkTableModel ltm,
long[] dims,
double[] spacing,
int[] spatialBlockSize,
org.janelia.saalfeldlab.n5.Compression compression,
int nThreads) |
public static final String[] compressionOptions
public static void main(String[] args)
public <T> void runFromBigWarpInstance(LandmarkTableModel landmarkModel, List<SourceAndConverter<T>> sources, int[] targetSourceIndexList)
public void run(String arg)
run
in interface ij.plugin.PlugIn
public static ij.ImagePlus toImagePlus(LandmarkTableModel ltm, boolean ignoreAffine, long[] dims, double[] spacing, int nThreads)
public static void writeN5(String n5BasePath, LandmarkTableModel ltm, long[] dims, double[] spacing, int[] spatialBlockSize, org.janelia.saalfeldlab.n5.Compression compression, int nThreads) throws IOException, org.janelia.saalfeldlab.n5.dataaccess.DataAccessException
IOException
org.janelia.saalfeldlab.n5.dataaccess.DataAccessException
public static void writeN5(String n5BasePath, String n5Dataset, LandmarkTableModel ltm, long[] dims, double[] spacing, int[] spatialBlockSize, org.janelia.saalfeldlab.n5.Compression compression, int nThreads) throws IOException, org.janelia.saalfeldlab.n5.dataaccess.DataAccessException
IOException
org.janelia.saalfeldlab.n5.dataaccess.DataAccessException
public static AffineGet toAffine(ThinPlateR2LogRSplineKernelTransform tps)
public static double[] toFlatAffine(ThinPlateR2LogRSplineKernelTransform tps)
public static long[] dimensionsFromImagePlus(ij.ImagePlus ref_imp)
public static FloatImagePlus<FloatType> convertToDeformationField(long[] dims, RealTransform transform, AffineGet pixToPhysical, int nThreads)
public static boolean areTransformsTheSame(RealTransform xfm1, RealTransform xfm2, Interval itvl, double EPS)
public static <T extends RealType<T>> void fromRealTransform(RealTransform transform, AffineGet pixelToPhysical, RandomAccessibleInterval<T> deformationField)
RealTransform
into a deformation field.
Writes the result into the passed RandomAccessibleInterval
. If
the transform has N source dimensions, then the deformation field must
have at least N+1 dimensions where the last dimensions of of length at
least N.
A DeformationField creating with the resulting RandomAccessibleInterval
will give the same results as the transform inside its Interval.T
- the type of the deformation fieldtransform
- the RealTransform
to convertpixelToPhysical
- the transform from coordinates in the RandomAccessibleInterval
to
physical unitsdeformationField
- the RandomAccessibleInterval
into which the
displacement field will be writtenpublic static <T extends RealType<T>> void fromRealTransform(RealTransform transform, AffineGet pixelToPhysical, RandomAccessibleInterval<T> deformationField, int nThreads)
RealTransform
into a deformation field.
Writes the result into the passed RandomAccessibleInterval
. If
the transform has N source dimensions, then the deformation field must
have at least N+1 dimensions where the last dimensions of of length at
least N.
A DeformationField creating with the resulting RandomAccessibleInterval
will give the same results as the transform inside its Interval.T
- the type of the deformation fieldtransform
- the RealTransform
to convertpixelToPhysical
- the transform from coordinates in the RandomAccessibleInterval
to
physical unitsdeformationField
- the RandomAccessibleInterval
into which the
displacement field will be writtennThreads
- the number of threadsCopyright © 2015–2021 Fiji. All rights reserved.