Class JPanelDTIEstimateTensor

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
gov.nih.mipav.view.renderer.WildMagic.DTI_FrameWork.JPanelDTIEstimateTensor
All Implemented Interfaces:
AlgorithmInterface, ActionListener, ItemListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

public class JPanelDTIEstimateTensor extends JPanel implements AlgorithmInterface, ActionListener, ItemListener
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • DEFAULT

      public static final int DEFAULT
      Different DTI algorithms:
      See Also:
    • LLMSE

      public static final int LLMSE
      See Also:
    • LINEAR

      public static final int LINEAR
      See Also:
    • NON_LINEAR

      public static final int NON_LINEAR
      See Also:
    • RESTORE

      public static final int RESTORE
      See Also:
    • WEIGHTED_LINEAR

      public static final int WEIGHTED_LINEAR
      See Also:
    • comboBoxDTI_Algorithm

      private JComboBox comboBoxDTI_Algorithm
      menu for selecting dti algorithm:
    • mainPanel

      private JPanel mainPanel
      main panel
    • maskImage

      private ModelImage maskImage
      Mask image for the tensor calculation
    • outputDirTextField

      private JTextField outputDirTextField
      output directory
    • pipeline

      private DTIPipeline pipeline
      parent dialog
    • tensorImage

      private ModelImage tensorImage
      Diffusion tensor image:
    • textMaskimage

      private JTextField textMaskimage
      mask image location:
    • textListFile

      private JTextField textListFile
      DWI .list location:
    • EPIpanel

    • displayExit

      private JCheckBox displayExit
      Check boxes enable the user to save and display output images:
    • displayIntensity

      private JCheckBox displayIntensity
    • displayTensor

      private JCheckBox displayTensor
    • saveExit

      private JCheckBox saveExit
    • saveIntensity

      private JCheckBox saveIntensity
    • saveTensor

      private JCheckBox saveTensor
    • serif12

      private Font serif12
    • calcTensor

      private JButton calcTensor
    • m_iDimX

      private int m_iDimX
    • m_iDimY

      private int m_iDimY
    • m_iSlices

      private int m_iSlices
    • m_iWeights

      private int m_iWeights
    • m_kRawFormat

      private String m_kRawFormat
    • m_fResX

      private float m_fResX
    • m_fResY

      private float m_fResY
    • m_fResZ

      private float m_fResZ
    • m_fMeanNoise

      private float m_fMeanNoise
    • m_bUseXRes

      private boolean m_bUseXRes
    • m_bUseYRes

      private boolean m_bUseYRes
    • m_bUseZRes

      private boolean m_bUseZRes
    • m_kDWIImage

      ModelImage m_kDWIImage
    • m_aakDWIList

      private String[][] m_aakDWIList
    • m_kBMatrix

      private WildMagic.LibFoundation.Mathematics.GMatrixd m_kBMatrix
    • m_aiMatrixEntries

      private int[] m_aiMatrixEntries
    • m_iBOrig

      private int m_iBOrig
  • Constructor Details

    • JPanelDTIEstimateTensor

      public JPanelDTIEstimateTensor(DTIPipeline pipeline)
  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent event)
      Specified by:
      actionPerformed in interface ActionListener
    • algorithmPerformed

      public void algorithmPerformed(AlgorithmBase algorithm)
      Description copied from interface: AlgorithmInterface
      Called after an algorithm this listener is registered to exits (maybe successfully, maybe not). If the algorithm is run in a separate thread, this call will be made within that thread. If not, this call will be made from that same, shared thread.
      Specified by:
      algorithmPerformed in interface AlgorithmInterface
      Parameters:
      algorithm - the algorithm which has just completed
    • calcTensor

      public void calcTensor(ModelImage dwiImage)
    • getMaskImage

      public ModelImage getMaskImage()
    • itemStateChanged

      public void itemStateChanged(ItemEvent event)
      Specified by:
      itemStateChanged in interface ItemListener
    • setImage

      public void setImage(ModelImage image)
      Set the input diffusion-weighted image (4D image series).
      Parameters:
      image -
    • buildTensorEstPanel

      private void buildTensorEstPanel()
    • buildMaskLoadPanel

      private void buildMaskLoadPanel()
    • finishTensorPanel

      private void finishTensorPanel()
    • init

      private void init()
    • loadMaskImage

      private void loadMaskImage()
    • loadDWIListFile

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

      public void enableCalcButton()
    • loadPathFile

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

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