Class JDialogConvert4DtoRGB

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

public class JDialogConvert4DtoRGB extends JDialogScriptableBase implements AlgorithmInterface
Author:
pandyan This class converts 4D datasets that have 3 or less 4th dim slices to an RGB image
See Also:
  • Field Details

    • image

      private ModelImage image
      src image
    • destExtents

      private int[] destExtents
      extents for extracted 3D subset
    • xSlices

      private int xSlices
      num x slices of src image
    • ySlices

      private int ySlices
      num y slices of src image
    • zSlices

      private int zSlices
      num z slices for src image
    • channelImages

      private ModelImage[] channelImages
      extraced 3D Model Images from src image
    • channelColorsComboBoxes

      private JComboBox[] channelColorsComboBoxes
      corresponding dropdown for each channel image
    • subsetAlgo

      private AlgorithmSubset subsetAlgo
      ref to AlgorithmSubset
    • mainPanel

      private JPanel mainPanel
      main panel of dialog
    • inputPanel

      private JPanel inputPanel
      input panel of dialog
    • OKCancelPanel

      private JPanel OKCancelPanel
      ok/cancel panel of dialog
    • remapCheckBox

      private JCheckBox remapCheckBox
      re-map checkbox
    • imageB

      private ModelImage imageB
      blue channel image
    • imageG

      private ModelImage imageG
      green channel image
    • imageR

      private ModelImage imageR
      red channel image
    • resultImage

      private ModelImage resultImage
      result image
    • remapMode

      private boolean remapMode
      boolean for remap
    • mathAlgo

      private AlgorithmRGBConcat mathAlgo
      ref to AlgorithmRGBConcat
    • blank

      private ModelImage blank
      blank image
    • vol1Channel

      private String vol1Channel
      vol 1 channel for scripting
    • vol2Channel

      private String vol2Channel
      vol 2 channel for scripting
    • vol3Channel

      private String vol3Channel
      vol 3 channel for scriptin
    • RED_CHANNEL

      private static final String RED_CHANNEL
      RED CHANNEL String
      See Also:
    • GREEN_CHANNEL

      private static final String GREEN_CHANNEL
      GREEN CHANNEL String
      See Also:
    • BLUE_CHANNEL

      private static final String BLUE_CHANNEL
      BLUE CHANNEL String
      See Also:
    • BLANK

      private static final String BLANK
      BLANK String
      See Also:
    • radioARGB

      private JRadioButton radioARGB
    • radioARGB_FLOAT

      private JRadioButton radioARGB_FLOAT
      DOCUMENT ME!
    • radioARGB_USHORT

      private JRadioButton radioARGB_USHORT
      DOCUMENT ME!
    • radioARGB_UINTEGER

      private JRadioButton radioARGB_UINTEGER
    • colorGroup

      private ButtonGroup colorGroup
    • dataType

      private int dataType
      ARGB, ARGB_USHORT, ARGB_UINTEGER, or ARGB_FLOAT for color image
    • remapGroup

      private ButtonGroup remapGroup
    • radioCommon

      private JRadioButton radioCommon
    • radioSeparate

      private JRadioButton radioSeparate
    • commonMapping

      private boolean commonMapping
    • textRemap

      private JTextField textRemap
    • remapHighestValue

      private float remapHighestValue
    • copyAllInfoBox

      private JCheckBox copyAllInfoBox
      Checkbox for representing whether to copy all file info
    • copyAllInfo

      private boolean copyAllInfo
      Whether all info in the image's FileInfo is copied
  • Constructor Details

    • JDialogConvert4DtoRGB

      public JDialogConvert4DtoRGB()
      Empty Constructor (needed for scripting)
    • JDialogConvert4DtoRGB

      public JDialogConvert4DtoRGB(Frame theParentFrame, ModelImage image)
      Constructor
      Parameters:
      image -
      theFrame -
  • Method Details

    • init

      public void init()
      init
    • extract3DSubsets

      public void extract3DSubsets()
      method that extracts 3D subsets from the 4D dataset
    • callAlgorithm

      protected void callAlgorithm()
      Call Algorithm.....calls the RGBConcat algorithm
      Specified by:
      callAlgorithm in class JDialogScriptableBase
    • 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.
    • setGUIFromParams

      protected void setGUIFromParams()
      set GUI...for scripting
      Specified by:
      setGUIFromParams in class JDialogScriptableBase
    • storeParamsFromGUI

      protected void storeParamsFromGUI() throws ParserException
      store params...for scripting
      Specified by:
      storeParamsFromGUI in class JDialogScriptableBase
      Throws:
      ParserException - If there is a problem creating/recording the new parameters.
    • actionPerformed

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

      public boolean setVariables()
      set variables
      Returns:
      boolean
    • setBlueImage

      public void setBlueImage(ModelImage im)
      Accessor that sets the Blue Image Source.
      Parameters:
      im - image to set the Blue Image Source to.
    • setRedImage

      public void setRedImage(ModelImage im)
      Accessor that sets the Green Image Source.
      Parameters:
      im - image to set the Green Image Source to.
    • setGreenImage

      public void setGreenImage(ModelImage im)
      Accessor that sets the Green Image Source.
      Parameters:
      im - image to set the Green Image Source to.
    • setVol1Channel

      public void setVol1Channel(String vol1Channel)
      set vol1Channel
      Parameters:
      vol1Channel -
    • setVol2Channel

      public void setVol2Channel(String vol2Channel)
      set vol2Channel
      Parameters:
      vol2Channel -
    • setVol3Channel

      public void setVol3Channel(String vol3Channel)
      set vol3Channel
      Parameters:
      vol3Channel -
    • setDataType

      public void setDataType(int dataType)
      Accessor that sets whether color image type is ARGB, ARGB_USHORT, ARGB_UINTEGER, or ARGB_FLOAT
      Parameters:
      dataType -
    • setRemapMode

      public void setRemapMode(boolean flag)
      Accessor that sets the remap mode.
      Parameters:
      flag - true indicates remap data.
    • setCommonMapping

      public void setCommonMapping(boolean commonMapping)
      Parameters:
      commonMapping -
    • setRemapHighestValue

      public void setRemapHighestValue(float remapHighestValue)
      Parameters:
      remapHighestValue -
    • finalize

      public void finalize()
      finalize
      Overrides:
      finalize in class Object
    • windowClosing

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