Class JDialogProstateSPIEcancerChallengeNIH_boundary_train

java.lang.Object
java.awt.Component
java.awt.Container
java.awt.Window
java.awt.Dialog
javax.swing.JDialog
gov.nih.mipav.view.dialogs.JDialogBase
gov.nih.mipav.view.renderer.WildMagic.ProstateFramework.JDialogProstateSPIEcancerChallengeNIH_boundary_train
All Implemented Interfaces:
AlgorithmInterface, DialogDefaultsInterface, ActionListener, FocusListener, ItemListener, WindowListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants

public class JDialogProstateSPIEcancerChallengeNIH_boundary_train extends JDialogBase implements AlgorithmInterface
After the MICCAI ProstateX challenge, I try to apply the prostate boundary based training on HED model. This class generates the training case for prostate boundary. Unfortunately, I never get a chance to run the testing case.
Author:
Ruida Cheng
See Also:
  • Field Details

  • Constructor Details

    • JDialogProstateSPIEcancerChallengeNIH_boundary_train

      public JDialogProstateSPIEcancerChallengeNIH_boundary_train(Frame theParentFrame)
      Constructor.
      Parameters:
      theParentFrame -
  • Method Details

    • disposeLocal

      public void disposeLocal()
      dispose memory
    • actionPerformed

      public void actionPerformed(ActionEvent event)
      Dialog local actionPerformed handler.
      Specified by:
      actionPerformed in interface ActionListener
      Overrides:
      actionPerformed in class JDialogBase
    • recordSaveImageDir

      private void recordSaveImageDir()
      Let user specify the saved 2D slices atlas, record the save directory.
    • readKeyImageDir

      private void readKeyImageDir()
      Read 3D images atlas directory.
    • traverse_Layer

      private void traverse_Layer(File dir)
    • traverse_firstLayer

      private void traverse_firstLayer(File firstDir, String child)
    • traverse_secondLayer

      private void traverse_secondLayer(File firstLayer, String hashID)
    • traverse_thirdLayer

      private void traverse_thirdLayer(File secondLayer, String hashID)
    • traverse_scanLayer

      private void traverse_scanLayer(File secondLayer, String hashID)
    • traverse_T2Layer

      private void traverse_T2Layer(File T2Layer, String hashID)
    • traverse_DicomLayer

      private void traverse_DicomLayer(File lastLayer, String hashID)
    • traverse_voiLayer

      private void traverse_voiLayer(File secondLayer, String hashID)
    • algorithmPerformed

      public void algorithmPerformed(AlgorithmBase algorithm)
      This method is required if the AlgorithmPerformed interface is implemented. It is called by the algorithms 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 interface AlgorithmInterface
      Parameters:
      algorithm - Algorithm that caused the event.
    • callAlgorithm

      public void callAlgorithm()
      Driver function to read image and VOIs, and convert each 3D image to 2D slices.
    • runScaleIntensity

      public void runScaleIntensity()
    • scaleIntensity

      public ModelImage scaleIntensity(ModelImage image)
    • runMask

      public void runMask()
    • runCED

      public void runCED()
    • runTransform

      public void runTransform()
    • calculateTransform

      public ModelImage calculateTransform(ModelImage image)
    • calculateCoherenceEnhancingDiffusion

      private ModelImage calculateCoherenceEnhancingDiffusion(ModelImage inImage)
    • crossValidationTrain

      public void crossValidationTrain()
    • savePNGfile

      private void savePNGfile(String dirName, String fileName, ModelImage srcImage, float minIntensity, float maxIntensity, int xDim, int yDim, boolean isMask)
    • saveImages

      public void saveImages(String key, int[] index, String folderName, Hashtable<String,ModelImage> whichTable)
    • saveImagesTest

      public void saveImagesTest(String key, int[] index, String folderName)
    • savePNGfile

      private void savePNGfile(String dirName, String fileName, ModelImage srcImage, float minIntensity, float maxIntensity, boolean isMask)
    • loadFiles

      public void loadFiles()
      load image files and voi files
    • readFile

      public void readFile()
    • init

      public void init()
      Initial panel
    • buildKeyImagePanel

      public void buildKeyImagePanel()
      Panel contains both the 3D image dir and saved 2D slices atlas dir.