public class ResliceImage<T extends RealType<T>> extends ContextCommand
Dataset
. The user
supplies spacings for each dimension. The new data is the result of slicing
the original image at specified spacings. When spacings are not equal to
integral spacings the resulting data has different dimensions. The output
data is computed using settable interpolation methods.Constructor and Description |
---|
ResliceImage() |
Modifier and Type | Method and Description |
---|---|
Dataset |
getDataset()
Gets the Dataset that the reslice operation will be run upon.
|
String |
getError()
Returns the current error message if any.
|
String |
getInterpolationMethod()
Gets the interpolation method used to combine pixels.
|
double |
getSpacing(int d)
Gets the reslice spacing for a given axis.
|
protected void |
init() |
boolean |
originMax(int d)
Returns true if the origin point of the reslicing for the user specified
axis is to be the largest value of the axis.
|
boolean |
originMin(int d)
Returns true if the origin point of the reslicing for the user specified
axis is to be the smallest value of the axis.
|
void |
run() |
void |
setDataset(Dataset ds)
Sets the Dataset that the reslice operation will be run upon.
|
void |
setInterpolationMethod(String str)
Sets the interpolation method used to combine pixels.
|
void |
setOriginMax(int d)
Sets the origin point of the reslicing for the user specified axis to the
largest value of the axis.
|
void |
setOriginMin(int d)
Sets the origin point of the reslicing for the user specified axis to the
smallest value of the axis.
|
void |
setSpacing(int d,
double spacing)
Sets the reslice spacing for a given axis to a given value.
|
void |
setUseUserUnits(boolean val)
Sets whether reslice spacing field values are in user units or pixel units.
|
boolean |
useUserUnits()
Gets whether reslice spacing field values are in user units or pixel units.
|
cancel, getCancelReason, isCanceled
context, getContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setContext
public void setDataset(Dataset ds)
public Dataset getDataset()
public void setOriginMin(int d)
public boolean originMin(int d)
public void setOriginMax(int d)
public boolean originMax(int d)
public void setSpacing(int d, double spacing)
public double getSpacing(int d)
public void setInterpolationMethod(String str)
public String getInterpolationMethod()
public void setUseUserUnits(boolean val)
public boolean useUserUnits()
public String getError()
public void run()
protected void init()
Copyright © 2014–2022 ImageJ. All rights reserved.