Class JDialogDTIInput

All Implemented Interfaces:
AlgorithmInterface, ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, ChangeListener, ListSelectionListener, RootPaneContainer, WindowConstants

public class JDialogDTIInput extends JInterfaceBase implements ActionListener, ListSelectionListener, AlgorithmInterface, ChangeListener
Dialog for specifying Diffusion Tensor Images. Diffusion Tensor images may be loaded in one of the following ways, specified by the dialog types: DWI, DTI, EG_FA, or TRACTS. DWI: The DWI dialog loads the raw Diffusion Weighted Images. Calculates the tensor image from the set of weighed images. The dialog requires the user to specify the raw image dimensions, and the number of weighted image sets. The user must also specify the mean noise value, the name of the B-Matrix file, and the .path file which specifies the locations of the weighted images in the directory structure. Once the tensor image is calculated, the eigen-vector and functional anisotropy images are calculated and passed to the DialogDTIColorDisplay dialog. The user also has the option of creating the fiber-tract bundles from the tensor image. DTI: The DTI dialog loads a previously-calculated Diffusion Tensor image and calculates the eigen-vector image and the functional anisotropy image. The DialogDTIColorDisplay dialog is then launched. The user specifies the tensor image and has the option of creating the fiber-tract bundles from the tensor image. EG_FA: The EG_FA dialog loads previously calculated eigen-vector and functional anisotropy images and launches the DialogDTIColorDisplay dialog TRACTS: The tracts dialog is launched from the ViewJFrameViewWM class. It enables the user to add the fiber-tract visualization to the GPU Volume display. The user can limit the number of tracts, the minimum and maximum tract lengths, or specify that tracts that pass through a VOI are loaded.
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • DWI

      public static final int DWI
      Diffusion Weighted Images dialog:
      See Also:
    • DTI

      public static final int DTI
      Diffusion Tensor Image dialog:
      See Also:
    • EG_FA

      public static final int EG_FA
      EigenVector and Functional Anisotropy dialog:
      See Also:
    • m_kEigenVectorImage

      private ModelImage m_kEigenVectorImage
      Eigenvector image *
    • m_kEigenValueImage

      private ModelImage m_kEigenValueImage
      EigenValue image *
    • m_kAnisotropyImage

      private ModelImage m_kAnisotropyImage
      Anisotropy image *
    • m_kDTIImage

      private ModelImage m_kDTIImage
      Diffusion Tensor image.
    • m_kDWIMaskImage

      private ModelImage m_kDWIMaskImage
      Mask image for calculating the DTI image.
    • m_kLUTa

      private ModelLUT m_kLUTa
      LUT of input image *
    • m_kEigenVectorPath

      private JTextField m_kEigenVectorPath
      EigenVector file input path name text box.
    • m_kAnisotropyPath

      private JTextField m_kAnisotropyPath
      Anisotropy file input path name text box.
    • m_kDTIPath

      private JTextField m_kDTIPath
      Diffusion Tensor file input path name text box.
    • m_kDWIPath

      private JTextField m_kDWIPath
      Diffusion Weighted Images .list file input path name text box.
    • m_kDWIMaskPath

      private JTextField m_kDWIMaskPath
      Diffusion Weighted Images Mask file input path name text box.
    • m_kBMatrix

      private WildMagic.LibFoundation.Mathematics.GMatrixd m_kBMatrix
      General matrix storing BMatrix values.
    • m_aakDWIList

      private String[][] m_aakDWIList
      List of file names for the Diffusion Weighted Images, from the .path file.
    • m_iSlices

      private int m_iSlices
      Number of slices in the Diffusion Weighted Images series.
    • m_iWeights

      private int m_iWeights
      Number of weights in the Diffusion Weighted Images series.
    • m_iDimX

      private int m_iDimX
      X-dimensions for Diffusion Weighted Images.
    • m_iDimY

      private int m_iDimY
      Y-dimensions for Diffusion Weighted Images.
    • m_iType

      private final int m_iType
      Dialog type.
    • m_kReconstructTracts

      private JCheckBox m_kReconstructTracts
      Checkbox for tract reconstruction.
    • m_kOpenB0

      private JCheckBox m_kOpenB0
    • m_iBOrig

      private int m_iBOrig
      Number of different BMatrix rows:
    • m_aiMatrixEntries

      private int[] m_aiMatrixEntries
      keeps track of unique entries in the BMatrix
    • m_fResX

      private float m_fResX
      Slice thickness read from .list file
    • m_fResY

      private float m_fResY
      Slice thickness read from .list file
    • m_fResZ

      private float m_fResZ
      Slice thickness read from .list file
    • m_bUseXRes

      private boolean m_bUseXRes
      Set to true if the slice resolution is read from the .list file: (xRes)
    • m_bUseYRes

      private boolean m_bUseYRes
      Set to true if the slice resolution is read from the .list file: (yRes)
    • m_bUseZRes

      private boolean m_bUseZRes
      Set to true if the slice resolution is read from the .list file: (zRes)
    • m_fMeanNoise

      private float m_fMeanNoise
      Mean noise vale read from the .list file
    • m_kRawFormat

      private String m_kRawFormat
      raw image format read from the .list file:
    • m_kParentDir

      private String m_kParentDir
      parent directory for the DTI output images.
  • Constructor Details

    • JDialogDTIInput

      public JDialogDTIInput(int iType)
      Create a new JDialogDTIInput of one of the four types:
      Parameters:
      iType - , type of Diffusion Tensor Input dialog to create.
  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent kAction)
      ActionListener event.
      Specified by:
      actionPerformed in interface ActionListener
      Parameters:
      kAction - , ActionEvent
    • algorithmPerformed

      public void algorithmPerformed(AlgorithmBase kAlgorithm)
      Called when AlgorithmDWI2DTI is done creating the DTI image.
      Specified by:
      algorithmPerformed in interface AlgorithmInterface
      Parameters:
      kAlgorithm - , algorithm that is finished.
    • disposeLocal

      public void disposeLocal()
      Clean up local memory.
    • stateChanged

      public void stateChanged(ChangeEvent arg0)
      Specified by:
      stateChanged in interface ChangeListener
    • valueChanged

      public void valueChanged(ListSelectionEvent arg0)
      Specified by:
      valueChanged in interface ListSelectionListener
    • calcEigenVectorImage

      private void calcEigenVectorImage()
      Calls AlgorithmDTI2EGFA to create eigen vector and functional anisotropy images.
    • createDTIPanel

      private JPanel createDTIPanel()
      Creates the user-interface for the Diffusion Tensor Image dialog.
      Returns:
      JPanel containing the user-interface for the Diffusion Tensor Image dialog.
    • createDWIPanel

      private JPanel createDWIPanel()
      Creates the user-interface for the Diffusion Tensor Image dialog.
      Returns:
      JPanel containing the user-interface for the Diffusion Tensor Image dialog.
    • createEigenPanel

      private JPanel createEigenPanel()
      Creates the user-interface for the EigenVector FA dialog.
      Returns:
      JPanel containing the user-interface for the EigenVector FA dialog.
    • init

      private void init(int iType)
      The JDialogDTIInput interface.
      Parameters:
      iType - , type of Diffusion Tensor Input dialog to create.
    • loadAnisotropyFile

      private void loadAnisotropyFile()
      Launches the JFileChooser for the user to select the functional anisotropy file. Loads the anisotropy data.
    • loadBMatrixFile

      private void loadBMatrixFile(String kFileName)
      Loads the BMatrix file.
      Parameters:
      kFileName - , name of BMatrix file.
    • loadDTIFile

      private void loadDTIFile()
      Launches the JFileChooser for the user to select the Diffusion Tensor Image. Loads the tensor data.
    • loadDWIListFile

      private void loadDWIListFile()
      Launches the JFileChooser for the user to select the Diffusion Weighted Images .path file. Loads the .path file.
    • loadDWIMaskFile

      private void loadDWIMaskFile()
      Launches the JFileChooser for the user to select the Diffusion Weighted Images .path file. Loads the .path file.
    • loadEigenVectorFile

      private void loadEigenVectorFile()
      Launches the JFileChooser for the user to select the Eigen Vector file.. Loads the eigen vector data.
    • loadPathFile

      private void loadPathFile(String kFileName, String kPathName)
      Loads the .path file.
      Parameters:
      kFileName - path file name.
      kPathName - , parent directory.
    • processDTI

      private void processDTI()
      Processes the Diffusion Tensor Image. Creates the eigen vector and functional anisotropy images. Launched the DialogDTIColorDisplay.
    • processDWI

      private void processDWI()
      Calls AlgorithmDWI2DTI to create the diffusion tensor image.