Class JDialogDTIEstimateTensor

All Implemented Interfaces:
AlgorithmInterface, DialogDefaultsInterface, ActionListener, FocusListener, ItemListener, WindowListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants

public class JDialogDTIEstimateTensor extends JDialogBase implements AlgorithmInterface, WindowListener
See Also:
  • Field Details

    • gbc

      private GridBagConstraints gbc
      grid bag constraints *
    • gbc2

      private GridBagConstraints gbc2
      grid bag constraints *
    • gbc3

      private GridBagConstraints gbc3
      grid bag constraints *
    • mainPanel

      private JPanel mainPanel
      main panel *
    • srcImagesTable

      private JTable srcImagesTable
      table to display the src image names.
    • srcTableModel

      private DefaultTableModel srcTableModel
      table model for the srcimages.
    • currDir

      private String currDir
      current directory *
    • srcImage

      private ModelImage srcImage
      src image *
    • slicesVector

      private final Vector<ArrayList<String>> slicesVector
      slices *
    • bValueTextField

      private JTextField bValueTextField
      textfields *
    • xdimTextField

      private JTextField xdimTextField
      textfields *
    • ydimTextField

      private JTextField ydimTextField
      textfields *
    • numSlicesTextField

      private JTextField numSlicesTextField
      textfields *
    • numVolumesTextField

      private JTextField numVolumesTextField
      textfields *
    • hFOVTextField

      private JTextField hFOVTextField
      textfields *
    • vFOVTextField

      private JTextField vFOVTextField
      textfields *
    • outputDirTextField

      private JTextField outputDirTextField
      textfields *
    • formatTextField

      private JTextField formatTextField
      textfields *
    • gapTextField

      private JTextField gapTextField
      textfields *
    • sliceThicknessTextField

      private JTextField sliceThicknessTextField
      textfields *
    • imagePlaneTextField

      private JTextField imagePlaneTextField
      textfields *
    • phaseEncodingTextField

      private JTextField phaseEncodingTextField
      textfields *
    • maskImageTextField

      private JTextField maskImageTextField
      textfields *
    • maskImage

      private ModelImage maskImage
      mask Image *
    • listFile

      private File listFile
      list file *
    • m_kParentDir

      private String m_kParentDir
      paren tdir *
    • 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_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_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_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_kBMatrix

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

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

      private int m_iBOrig
      Number of different BMatrix rows:
    • kAlgorithm

      private AlgorithmDWI2DTI kAlgorithm
      handle to algorithm *
    • DTI

      private ModelImage DTI
      Diffusion Tensor image.
    • loadMaskButton

      private JButton loadMaskButton
      button *
    • m_aakDWIList

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

    • JDialogDTIEstimateTensor

      public JDialogDTIEstimateTensor()
      constructor
  • Method Details

    • init

      public void init()
      init
    • actionPerformed

      public void actionPerformed(ActionEvent e)
      action performed
      Specified by:
      actionPerformed in interface ActionListener
      Overrides:
      actionPerformed in class JDialogBase
    • parse

      public boolean parse(File file)
      Parses study directory
      Parameters:
      file -
      Returns:
    • populateFields

      private boolean populateFields()
    • readBValGradientFile

      public boolean readBValGradientFile(String gradientFilePath)
      reads the bval/gradient file...both dti studio format and fsl format are accepted
      Parameters:
      gradientFilePath -
      Returns:
    • createListFile

      private void createListFile()
      create list file
    • createBMatrixFile

      private void createBMatrixFile()
      create b-matrix file
    • createPathFile

      private void createPathFile()
      create path file
    • readListFile

      private void readListFile()
      read list file
    • readPathFile

      public void readPathFile(String kFileName)
      Loads the .path file.
      Parameters:
      kFileName - path file name.
      kPathName - parent directory.
    • readBMatrixFile

      private void readBMatrixFile(String kFileName)
      Loads the BMatrix file.
      Parameters:
      kFileName - name of BMatrix file.
    • processDWI

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

      public void algorithmPerformed(AlgorithmBase algorithm)
      algorithm performed
      Specified by:
      algorithmPerformed in interface AlgorithmInterface
      Parameters:
      algorithm - the algorithm which has just completed
    • validateData

      private boolean validateData()
      validate data
      Returns:
    • windowClosing

      public void windowClosing(WindowEvent event)
      window closing
      Specified by:
      windowClosing in interface WindowListener
      Overrides:
      windowClosing in class JDialogBase
      Parameters:
      event - WindowEvent