Class ViewJComponentColocalizationEM

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable

public class ViewJComponentColocalizationEM extends ViewJComponentBase
DOCUMENT ME!
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Use serialVersionUID for interoperability.
      See Also:
    • OPACITY

      public float OPACITY
      Opacity value used by the paint brush. value = 1.0 - opaque value = 0.25 - default (mostly see through)
    • frame

      protected ViewJFrameBase frame
      frame - frame where the component image is displayed.
    • imageA

      protected ModelImage imageA
      imageA - model for image A.
    • imageB

      protected ModelImage imageB
      imageB - model for image B.
    • interpMode

      protected int interpMode
      Creates histogram with ellipses around most prominent clusters.
    • RGBTA

      protected ModelRGB RGBTA
      true if selected red, green, blue components present in RGB image.
    • RGBTB

      protected ModelRGB RGBTB
      DOCUMENT ME!
    • bin2

      private int bin2
      DOCUMENT ME!
    • bottomPad

      private int bottomPad
      DOCUMENT ME!
    • brightness

      private int brightness
      DOCUMENT ME!
    • contrast

      private float contrast
      DOCUMENT ME!
    • destImage

      private ModelImage destImage
      DOCUMENT ME!
    • halfMajor

      private double[] halfMajor
      DOCUMENT ME!
    • halfMinor

      private double[] halfMinor
      DOCUMENT ME!
    • haveFiltered

      private boolean haveFiltered
      DOCUMENT ME!
    • imageBufferDest

      private float[] imageBufferDest
      DOCUMENT ME!
    • imgDest

      private Image imgDest
      DOCUMENT ME!
    • leftPad

      private int leftPad
      DOCUMENT ME!
    • logMagDisplay

      private boolean logMagDisplay
      DOCUMENT ME!
    • lutBufferRemappedDest

      private int[] lutBufferRemappedDest
      DOCUMENT ME!
    • LUTdest

      private ModelLUT LUTdest
      LUTa - lookup table for destImage.
    • mean

      private double[][] mean
      DOCUMENT ME!
    • memImageDest

      private MemoryImageSource memImageDest
      DOCUMENT ME!
    • min1

      private double min1
      DOCUMENT ME!
    • max1

      private double max1
      DOCUMENT ME!
    • min2

      private double min2
      DOCUMENT ME!
    • max2

      private double max2
      DOCUMENT ME!
    • paintBitmapDest

      private BitSet paintBitmapDest
      Buffer used to indicate if the pixel location is painted (true) or unpainted (false).
    • paintBufferDest

      private int[] paintBufferDest
      Buffer that displays the combined paintBitmap and pixBuffer buffers.
    • pixBufferDest

      private int[] pixBufferDest
      Buffer used to store ARGB images of the image presently being displayed.
    • red

      private int red
      DOCUMENT ME!
    • green

      private int green
      DOCUMENT ME!
    • blue

      private int blue
      DOCUMENT ME!
    • resX

      private float resX
      DOCUMENT ME!
    • resY

      private float resY
      DOCUMENT ME!
    • rightPad

      private int rightPad
      DOCUMENT ME!
    • scale1

      private double scale1
      DOCUMENT ME!
    • scale2

      private double scale2
      DOCUMENT ME!
    • theta

      private double[] theta
      DOCUMENT ME!
    • topPad

      private int topPad
      DOCUMENT ME!
    • useBlue

      private boolean useBlue
      DOCUMENT ME!
    • useGreen

      private boolean useGreen
      DOCUMENT ME!
    • useRed

      private boolean useRed
      DOCUMENT ME!
    • zoomX

      private float zoomX
      DOCUMENT ME!
    • zoomY

      private float zoomY
      DOCUMENT ME!
  • Constructor Details

    • ViewJComponentColocalizationEM

      public ViewJComponentColocalizationEM(ViewJFrameBase _frame, ModelImage _imageA, ModelImage _imageB, ModelImage destImage, ModelLUT LUTdest, float[] imageBufferDest, boolean useRed, boolean useGreen, boolean useBlue, double min1, double max1, double min2, double max2, double scale1, double scale2, int[] pixBufferDest, int[] paintBufferDest, float zoom, int[] extents, boolean logMagDisplay, int leftPad, int rightPad, int bottomPad, int topPad, double[][] mean, double[] halfMajor, double[] halfMinor, double[] theta)
      Constructor: ImageA and ImageB are expected to be of the same dimensionality !!
      Parameters:
      _frame - frame where the controls are obtained
      _imageA - Model of the image that will be displayed
      _imageB - Model of the image that will be displayed
      destImage - Image with histogram information
      LUTdest - LUT used to display destImage
      imageBufferDest - storage buffer used to display destImage
      useRed - DOCUMENT ME!
      useGreen - DOCUMENT ME!
      useBlue - DOCUMENT ME!
      min1 - DOCUMENT ME!
      max1 - DOCUMENT ME!
      min2 - DOCUMENT ME!
      max2 - DOCUMENT ME!
      scale1 - DOCUMENT ME!
      scale2 - DOCUMENT ME!
      pixBufferDest - storage buffer used to build a displayable image
      paintBufferDest - DOCUMENT ME!
      zoom - initial magnification of image
      extents - initial display dimensions of the image
      logMagDisplay - display log magnitude of image
      leftPad - DOCUMENT ME!
      rightPad - DOCUMENT ME!
      bottomPad - DOCUMENT ME!
      topPad - DOCUMENT ME!
      mean - DOCUMENT ME!
      halfMajor - DOCUMENT ME!
      halfMinor - DOCUMENT ME!
      theta - DOCUMENT ME!
  • Method Details

    • buildImageDestObject

      public boolean buildImageDestObject(ModelLUT _LUTdest, boolean forceShow)
      Shows the 2D histogram image.
      Parameters:
      _LUTdest - LUTdest - to change to new LUT for imageA else null
      forceShow - forces this method to import image and recalculate java image
      Returns:
      boolean to indicate if the show was successful
    • dispose

      public void dispose(boolean gcFlag)
      Sets all variables to null, disposes, and garbage collects.
      Overrides:
      dispose in class ViewJComponentBase
      Parameters:
      gcFlag - if true garbage collector should be called.
    • finalizeLocal

      public void finalizeLocal()
      Clean up some resources!
    • getblue

      public int getblue()
      Accessor that returns int blue.
      Returns:
      blue
    • getgreen

      public int getgreen()
      Accessor that returns int green.
      Returns:
      green
    • getImageA

      public ModelImage getImageA()
      Accessor that returns the imageA.
      Returns:
      imageA
    • getImageB

      public ModelImage getImageB()
      Accessor that returns the imageB.
      Returns:
      imageB
    • getOPACITY

      public float getOPACITY()
      Accessor that returns float OPACITY.
      Returns:
      OPACITY
    • getpaintBitmapDest

      public BitSet getpaintBitmapDest()
      Accessor that returns BitSet paintBitmap.
      Returns:
      paintBitmap
    • getPreferredSize

      public Dimension getPreferredSize()
      Size set to object size.
      Overrides:
      getPreferredSize in class ViewJComponentBase
      Returns:
      dimension with the size
    • getred

      public int getred()
      Accessor that returns int red.
      Returns:
      red
    • getSize

      public Dimension getSize(Dimension wh)
      Gets the size of the object taking into account the zoom.
      Overrides:
      getSize in class ViewJComponentBase
      Parameters:
      wh - dimension
      Returns:
      dimension with the size
    • getZoomX

      public float getZoomX()
      Magnification in the x - dimension.
      Overrides:
      getZoomX in class ViewJComponentBase
      Returns:
      magnificaiton in the x - dimension
    • getZoomY

      public float getZoomY()
      Magnification in the y - dimension.
      Overrides:
      getZoomY in class ViewJComponentBase
      Returns:
      magnificaiton in the y - dimension
    • importImageDest

      public void importImageDest(int[] data)
      Creates a Image object form an array of ints that have been formatted (packed) properly (i.e. aRGB)
      Parameters:
      data - Data (image) to be displayed that has been formatted (packed) properly (i.e. aRGB)
    • paintComponent

      public void paintComponent(Graphics g)
      Paints the image and border.
      Overrides:
      paintComponent in class ViewJComponentBase
      Parameters:
      g - Graphics handle
    • setBrightness

      public void setBrightness(int brightness, float contrast)
      Method to set the brightness and contrast of the animate images.
      Parameters:
      brightness - int going from -255 to 255
      contrast - float scale factor
    • setLogMagDisplay

      public void setLogMagDisplay(boolean logMagDisplay)
      DOCUMENT ME!
      Parameters:
      logMagDisplay - DOCUMENT ME!
    • setPaintMaskDest

      public void setPaintMaskDest(BitSet mask)
      Accessor that sets the paint mask.
      Parameters:
      mask - DOCUMENT ME!
    • setRGBTA

      public void setRGBTA(ModelRGB RGBT)
      Sets the RGB table for the ARGB image A.
      Parameters:
      RGBT - RGB table
    • setRGBTB

      public void setRGBTB(ModelRGB RGBT)
      Sets the RGB table for the ARGB image B.
      Parameters:
      RGBT - RGB table
    • setZoom

      public void setZoom(float zX, float zY)
      Sets the magnification in both x and y directions.
      Overrides:
      setZoom in class ViewJComponentBase
      Parameters:
      zX - zoom in the x direction
      zY - zoom in the y direction
    • update

      public void update()
      Method to call paint without erasing background this reduces flicker!
    • update

      public void update(Graphics g)
      Method to call paint without erasing background this reduces flicker!
      Overrides:
      update in class ViewJComponentBase
      Parameters:
      g - Graphics handle