Class LightboxGenerator

java.lang.Object
java.lang.Thread
gov.nih.mipav.model.algorithms.AlgorithmBase
gov.nih.mipav.model.algorithms.LightboxGenerator
All Implemented Interfaces:
ActionListener, WindowListener, Runnable, EventListener

public class LightboxGenerator extends AlgorithmBase
The class creates a RGB image of a 3d image in a Lightbox type format.
Version:
0.1 May 12, 2009
Author:
morseaj
  • Field Details

    • startSlice

      private final int startSlice
    • endSlice

      private final int endSlice
    • newHeight

      private final int newHeight
      Height of new image in pixels
    • newWidth

      private final int newWidth
      Width of new image in pixels
    • original

      private ModelImage original
    • rows

      private final int rows
    • columns

      private final int columns
    • borderR

      private final byte borderR
    • borderG

      private final byte borderG
    • borderB

      private final byte borderB
    • display

      private final boolean display
    • thickness

      private final int thickness
    • finalImage

      private ModelImage finalImage
  • Constructor Details

    • LightboxGenerator

      public LightboxGenerator(ModelImage image, int startSlice, int endSlice, double percentSize, int rows, int columns, int borderR, int borderG, int borderB, boolean display, int borderThickness)
      Constructor for Lightbox Image Files that will be used to create a lightBox image.
      Parameters:
      image - 3D image to be created in lightbox format
      startSlice - first slice to be used
      endSlice - last slice to be used
      percentSize - shrink images by percent
      rows - number of rows in lightbox
      columns - number of columns in lightbox
      borderR - R value for border
      borderG - G value for border
      borderB - B value for border
      display - should lightbox image be shown in frame once created?
      borderThickness - border thickness in pixels
  • Method Details

    • finalize

      public void finalize()
      Prepares this class for cleanup.
      Overrides:
      finalize in class AlgorithmBase
    • getImage

      public ModelImage getImage()
      returns the newly created image
    • runAlgorithm

      public void runAlgorithm()
      Accessor that returns the number of image slices saved.
      Specified by:
      runAlgorithm in class AlgorithmBase