Class JDialogKnees_3DReconstrucion

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

public class JDialogKnees_3DReconstrucion extends JDialogBase implements AlgorithmInterface
For knees project, reconstruct the 3D surface from VOIs.
Author:
Ruida Cheng
See Also:
  • Field Details

  • Constructor Details

    • JDialogKnees_3DReconstrucion

      public JDialogKnees_3DReconstrucion(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_folder

      private void traverse_folder(File dir)
    • traverse_folder

      private void traverse_folder(File dir, String orientation)
    • processDir_folder

      private void processDir_folder(File dir, String orientation, String hashID)
    • processDir_folder_last

      private void processDir_folder_last(File dir, String orientation, 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.
    • smoothVOI

      private void smoothVOI()
    • smoothVOI

      public void smoothVOI(ModelImage maskImage, ModelImage resultImage, int numPoints)
    • reconstructSurface

      private void reconstructSurface()
    • init

      public void init()
      Initial panel
    • buildKeyImagePanel

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