Class JDialogSKI10_femur_eval_pre

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

public class JDialogSKI10_femur_eval_pre extends JDialogBase implements AlgorithmInterface
This class converts the original knees MRI images into isotropic images. 1) Convert the VOIs into binary image masks. 2) Transform the binary mask images to original image resolution. 3) Then, save the binary mask into .nii file format for comparison.
Author:
Ruida Cheng
See Also:
  • Field Details

  • Constructor Details

    • JDialogSKI10_femur_eval_pre

      public JDialogSKI10_femur_eval_pre(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_image_folder

      private void traverse_image_folder(File dir, String hashID)
    • read_image_name

      private void read_image_name(File dir)
    • traverse_voi_folder

      private void traverse_voi_folder(File dir)
    • traverse_fold

      private void traverse_fold(File dir)
    • traverse_id

      private void traverse_id(File dir)
    • traverse_file

      private void traverse_file(File dir, String id)
    • 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.
    • threshold_GT

      public void threshold_GT()
    • calculateThreshold

      private ModelImage calculateThreshold(ModelImage srcImage)
    • generateGTContours

      private void generateGTContours()
    • generateSegContours

      private void generateSegContours()
    • transform

      public void transform()
    • convertVOItoMask

      public void convertVOItoMask()
    • calculateTransform

      public ModelImage calculateTransform(ModelImage keyImage, ModelImage srcImage)
    • loadFiles

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

      public void readGTFile()
    • readSegFile

      public void readSegFile()
    • init

      public void init()
      Initial panel
    • buildKeyImagePanel

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