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 AlgorithmRotatealgoRotatestatic intAXIAL_INDEXstatic intCORONAL_INDEX(package private) FileInfoBasefileInfo(package private) FileInfoNIFTIfileInfoNIFTIprivate ModelImageimageprivate int[]newOrprivate int[]orprivate ModelImageresultImagestatic intSAGITTAL_INDEXstatic intUSER_INDEX
-
Constructor Summary
Constructors Constructor Description ImageReorientation(ModelImage im, int orientationIndex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidalgorithmPerformed(AlgorithmBase algorithm)This method is required if the AlgorithmPerformed interface is implemented.ModelImagegetResultImage()voidpreformOrientation()protected voidset_axial_orientation()protected voidset_coronal_orientation()protected voidset_sagittal_orientation()private booleansetVariables()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:
algorithmPerformedin 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:
trueif parameters set successfully,falseotherwise.
-
getResultImage
public ModelImage getResultImage()
-
-