public class ApplyBigwarpPlugin extends Object implements ij.plugin.PlugIn
Modifier and Type | Class and Description |
---|---|
static class |
ApplyBigwarpPlugin.WriteDestinationOptions |
Modifier and Type | Field and Description |
---|---|
static String |
LANDMARK_POINT_CUBE_PHYSICAL |
static String |
LANDMARK_POINT_CUBE_PIXEL |
static String |
LANDMARK_POINTS |
static String |
MOVING |
static String |
MOVING_WARPED |
static String |
SPECIFIED |
static String |
SPECIFIED_PHYSICAL |
static String |
SPECIFIED_PIXEL |
static String |
TARGET |
static String |
UNION_TARGET_MOVING |
Constructor and Description |
---|
ApplyBigwarpPlugin() |
Modifier and Type | Method and Description |
---|---|
static <T> List<ij.ImagePlus> |
apply(BigWarp.BigWarpData<T> bwData,
LandmarkTableModel landmarks,
String tranformTypeOption,
String fieldOfViewOption,
String fieldOfViewPointFilter,
String resolutionOption,
double[] resolutionSpec,
double[] fovSpec,
double[] offsetSpec,
Interpolation interp,
boolean isVirtual,
int nThreads,
boolean wait,
ApplyBigwarpPlugin.WriteDestinationOptions writeOpts) |
static List<ij.ImagePlus> |
apply(ij.ImagePlus movingIp,
ij.ImagePlus targetIp,
LandmarkTableModel landmarks,
String tranformTypeOption,
String fieldOfViewOption,
String fieldOfViewPointFilter,
String resolutionOption,
double[] resolutionSpec,
double[] fovSpec,
double[] offsetSpec,
Interpolation interp,
boolean isVirtual,
boolean wait,
int nThreads) |
static List<ij.ImagePlus> |
apply(ij.ImagePlus movingIp,
ij.ImagePlus targetIp,
LandmarkTableModel landmarks,
String tranformTypeOption,
String fieldOfViewOption,
String fieldOfViewPointFilter,
String resolutionOption,
double[] resolutionSpec,
double[] fovSpec,
double[] offsetSpec,
Interpolation interp,
boolean isVirtual,
int nThreads,
boolean wait,
ApplyBigwarpPlugin.WriteDestinationOptions writeOpts) |
static void |
fillMatchedPointNames(List<String> ptList,
LandmarkTableModel landmarks,
String fieldOfViewPointFilter) |
static org.janelia.saalfeldlab.n5.Compression |
getCompression(String compressionArg) |
static List<Double[]> |
getMatchedPoints(LandmarkTableModel landmarks,
String fieldOfViewPointFilter) |
static List<Interval> |
getPixelInterval(BigWarp.BigWarpData<?> bwData,
LandmarkTableModel landmarks,
InvertibleRealTransform transform,
String fieldOfViewOption,
String fieldOfViewPointFilter,
double[] fovSpec,
double[] offsetSpec,
double[] outputResolution)
Returns the interval in pixels of the output given input options
|
static List<Interval> |
getPixelInterval(ij.ImagePlus movingIp,
ij.ImagePlus targetIp,
LandmarkTableModel landmarks,
InvertibleRealTransform transform,
String fieldOfViewOption,
String fieldOfViewPointFilter,
double[] fovSpec,
double[] offsetSpec,
double[] outputResolution) |
static Interval |
getPixelInterval(Source<?> source,
LandmarkTableModel landmarks,
InvertibleRealTransform transform,
String fieldOfViewOption,
double[] outputResolution) |
static double[] |
getPixelOffset(String fieldOfViewOption,
double[] offsetSpec,
double[] outputResolution,
Interval outputInterval)
Get the offset in pixels given the output resolution and interval
|
static double[] |
getResolution(BigWarp.BigWarpData<?> bwData,
String resolutionOption,
double[] resolutionSpec) |
static double[] |
getResolution(ij.ImagePlus movingIp,
ij.ImagePlus targetIp,
String resolutionOption,
double[] resolutionSpec)
Returns the resolution of the output given input options
|
static double[] |
getResolution(Source<?> source,
String resolutionOption,
double[] resolutionSpec) |
static String |
getUnit(BigWarp.BigWarpData<?> bwData,
String resolutionOption) |
static void |
main(String[] args) |
static int[] |
parseBlockSize(String blockSizeArg,
int nd) |
static double[] |
resolutionFromSource(Source<?> src) |
void |
run(String arg) |
static <T> List<ij.ImagePlus> |
runExport(BigWarp.BigWarpData<T> data,
List<SourceAndConverter<T>> sources,
String fieldOfViewOption,
List<Interval> outputIntervalList,
List<String> matchedPtNames,
Interpolation interp,
double[] offsetIn,
double[] resolution,
boolean isVirtual,
int nThreads,
ProgressWriter progressWriter,
boolean show,
boolean wait,
ApplyBigwarpPlugin.WriteDestinationOptions writeOpts) |
static <S,T extends NativeType<T> & NumericType<T>> |
runN5Export(BigWarp.BigWarpData<S> data,
List<SourceAndConverter<S>> sources,
String fieldOfViewOption,
Interval outputInterval,
Interpolation interp,
double[] offset,
double[] resolution,
String unit,
ProgressWriter progressWriter,
ApplyBigwarpPlugin.WriteDestinationOptions writeOpts,
ExecutorService exec) |
static boolean |
validateInput(ij.ImagePlus movingIp,
ij.ImagePlus targetIp,
LandmarkTableModel landmarks,
String fieldOfViewOption,
String resolutionOption,
double[] resolutionSpec,
double[] fovSpec,
double[] offsetSpec,
Interpolation interp,
boolean isVirtual,
int nThreads) |
public static final String TARGET
public static final String MOVING
public static final String MOVING_WARPED
public static final String UNION_TARGET_MOVING
public static final String SPECIFIED
public static final String SPECIFIED_PHYSICAL
public static final String SPECIFIED_PIXEL
public static final String LANDMARK_POINTS
public static final String LANDMARK_POINT_CUBE_PHYSICAL
public static final String LANDMARK_POINT_CUBE_PIXEL
public static void main(String[] args) throws IOException
IOException
public static boolean validateInput(ij.ImagePlus movingIp, ij.ImagePlus targetIp, LandmarkTableModel landmarks, String fieldOfViewOption, String resolutionOption, double[] resolutionSpec, double[] fovSpec, double[] offsetSpec, Interpolation interp, boolean isVirtual, int nThreads)
public static double[] getResolution(Source<?> source, String resolutionOption, double[] resolutionSpec)
public static String getUnit(BigWarp.BigWarpData<?> bwData, String resolutionOption)
public static double[] getResolution(BigWarp.BigWarpData<?> bwData, String resolutionOption, double[] resolutionSpec)
public static double[] getResolution(ij.ImagePlus movingIp, ij.ImagePlus targetIp, String resolutionOption, double[] resolutionSpec)
movingIp
- the moving ImagePlustargetIp
- the target ImagePlusresolutionOption
- the resolution optionresolutionSpec
- the resolution (if applicable)public static List<Interval> getPixelInterval(ij.ImagePlus movingIp, ij.ImagePlus targetIp, LandmarkTableModel landmarks, InvertibleRealTransform transform, String fieldOfViewOption, String fieldOfViewPointFilter, double[] fovSpec, double[] offsetSpec, double[] outputResolution)
public static Interval getPixelInterval(Source<?> source, LandmarkTableModel landmarks, InvertibleRealTransform transform, String fieldOfViewOption, double[] outputResolution)
public static double[] resolutionFromSource(Source<?> src)
public static List<Interval> getPixelInterval(BigWarp.BigWarpData<?> bwData, LandmarkTableModel landmarks, InvertibleRealTransform transform, String fieldOfViewOption, String fieldOfViewPointFilter, double[] fovSpec, double[] offsetSpec, double[] outputResolution)
bwData
- the BigWarpDatalandmarks
- the landmarksfieldOfViewOption
- the field of view optionfieldOfViewPointFilter
- the regexp for filtering landmarks points by namefovSpec
- the field of view specificationoffsetSpec
- the offset specificationoutputResolution
- the resolution of the output imagepublic static void fillMatchedPointNames(List<String> ptList, LandmarkTableModel landmarks, String fieldOfViewPointFilter)
public static List<Double[]> getMatchedPoints(LandmarkTableModel landmarks, String fieldOfViewPointFilter)
public static double[] getPixelOffset(String fieldOfViewOption, double[] offsetSpec, double[] outputResolution, Interval outputInterval)
fieldOfViewOption
- the field of view optionoffsetSpec
- the offset specificationoutputResolution
- the resolution of the output imageoutputInterval
- the output intervalpublic static List<ij.ImagePlus> apply(ij.ImagePlus movingIp, ij.ImagePlus targetIp, LandmarkTableModel landmarks, String tranformTypeOption, String fieldOfViewOption, String fieldOfViewPointFilter, String resolutionOption, double[] resolutionSpec, double[] fovSpec, double[] offsetSpec, Interpolation interp, boolean isVirtual, boolean wait, int nThreads)
public static List<ij.ImagePlus> apply(ij.ImagePlus movingIp, ij.ImagePlus targetIp, LandmarkTableModel landmarks, String tranformTypeOption, String fieldOfViewOption, String fieldOfViewPointFilter, String resolutionOption, double[] resolutionSpec, double[] fovSpec, double[] offsetSpec, Interpolation interp, boolean isVirtual, int nThreads, boolean wait, ApplyBigwarpPlugin.WriteDestinationOptions writeOpts)
public static <T> List<ij.ImagePlus> apply(BigWarp.BigWarpData<T> bwData, LandmarkTableModel landmarks, String tranformTypeOption, String fieldOfViewOption, String fieldOfViewPointFilter, String resolutionOption, double[] resolutionSpec, double[] fovSpec, double[] offsetSpec, Interpolation interp, boolean isVirtual, int nThreads, boolean wait, ApplyBigwarpPlugin.WriteDestinationOptions writeOpts)
public static <T> List<ij.ImagePlus> runExport(BigWarp.BigWarpData<T> data, List<SourceAndConverter<T>> sources, String fieldOfViewOption, List<Interval> outputIntervalList, List<String> matchedPtNames, Interpolation interp, double[] offsetIn, double[] resolution, boolean isVirtual, int nThreads, ProgressWriter progressWriter, boolean show, boolean wait, ApplyBigwarpPlugin.WriteDestinationOptions writeOpts)
public static <S,T extends NativeType<T> & NumericType<T>> void runN5Export(BigWarp.BigWarpData<S> data, List<SourceAndConverter<S>> sources, String fieldOfViewOption, Interval outputInterval, Interpolation interp, double[] offset, double[] resolution, String unit, ProgressWriter progressWriter, ApplyBigwarpPlugin.WriteDestinationOptions writeOpts, ExecutorService exec)
public void run(String arg)
run
in interface ij.plugin.PlugIn
public static int[] parseBlockSize(String blockSizeArg, int nd)
public static org.janelia.saalfeldlab.n5.Compression getCompression(String compressionArg)
Copyright © 2015–2021 Fiji. All rights reserved.