Class ImageReorientation
- java.lang.Object
-
- gov.nih.mipav.view.renderer.WildMagic.ProstateFramework.ImageReorientation
-
- All Implemented Interfaces:
AlgorithmInterface
public class ImageReorientation extends java.lang.Object implements AlgorithmInterface
-
-
Field Summary
Fields Modifier and Type Field Description private AlgorithmRotate
algoRotate
static int
AXIAL_INDEX
static int
CORONAL_INDEX
(package private) FileInfoBase
fileInfo
(package private) FileInfoNIFTI
fileInfoNIFTI
private ModelImage
image
private int[]
newOr
private int[]
or
private ModelImage
resultImage
static int
SAGITTAL_INDEX
static int
USER_INDEX
-
Constructor Summary
Constructors Constructor Description ImageReorientation(ModelImage im, int orientationIndex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
algorithmPerformed(AlgorithmBase algorithm)
This method is required if the AlgorithmPerformed interface is implemented.ModelImage
getResultImage()
void
preformOrientation()
protected void
set_axial_orientation()
protected void
set_coronal_orientation()
protected void
set_sagittal_orientation()
private boolean
setVariables()
Use the GUI results to set up the variables needed to run the algorithm.
-
-
-
Field Detail
-
algoRotate
private AlgorithmRotate algoRotate
-
image
private ModelImage image
-
resultImage
private ModelImage resultImage
-
AXIAL_INDEX
public static final int AXIAL_INDEX
- See Also:
- Constant Field Values
-
CORONAL_INDEX
public static final int CORONAL_INDEX
- See Also:
- Constant Field Values
-
SAGITTAL_INDEX
public static final int SAGITTAL_INDEX
- See Also:
- Constant Field Values
-
USER_INDEX
public static final int USER_INDEX
- See Also:
- Constant Field Values
-
fileInfo
FileInfoBase fileInfo
-
fileInfoNIFTI
FileInfoNIFTI fileInfoNIFTI
-
or
private int[] or
-
newOr
private int[] newOr
-
-
Constructor Detail
-
ImageReorientation
public ImageReorientation(ModelImage im, int orientationIndex)
-
-
Method Detail
-
preformOrientation
public void preformOrientation()
-
algorithmPerformed
public void algorithmPerformed(AlgorithmBase algorithm)
This method is required if the AlgorithmPerformed interface is implemented. It is called by the algorithm when it has completed or failed to to complete, so that the dialog can be display the result image and/or clean up.- Specified by:
algorithmPerformed
in interfaceAlgorithmInterface
- Parameters:
algorithm
- Algorithm that caused the event.
-
set_axial_orientation
protected void set_axial_orientation()
-
set_sagittal_orientation
protected void set_sagittal_orientation()
-
set_coronal_orientation
protected void set_coronal_orientation()
-
setVariables
private boolean setVariables()
Use the GUI results to set up the variables needed to run the algorithm.- Returns:
true
if parameters set successfully,false
otherwise.
-
getResultImage
public ModelImage getResultImage()
-
-