plugins.big.bigsnake.core
Class ImageLUTContainer

java.lang.Object
  extended by plugins.big.bigsnake.core.ImageLUTContainer

public class ImageLUTContainer
extends java.lang.Object

Container for the LUTs.

Version:
May 3, 2014
Author:
Ricard Delgado-Gonzalo (ricard.delgado@gmail.com)

Field Summary
static java.lang.String ID_ACTIVECHANNEL
          Label of the XML tag containing the information of the channel number used in the snake.
static java.lang.String ID_SIGMA
          Label of the XML tag containing the standard deviation of the Gaussian smoothing applied to the input image when computing the contour energy.
 
Constructor Summary
ImageLUTContainer()
          Default constructor.
 
Method Summary
 void buildLUTs()
          Constructs the look-up-tables that the snake needs to function.
 int getChannelNumber()
          Returns the active channel.
 double[] getFilteredImageDataArray()
          Returns a one dimensional array containing the pixel values of the image after applying a smoothed Laplacian filter of the active channel.
 double[] getImageDataArray()
          Returns a one dimensional array containing the pixel values of the original image of the active channel.
 int getImageHeight()
          Returns the height in pixels of the image.
 int getImageWidth()
          Returns the with in pixels of the image.
 icy.sequence.Sequence getOriginalSequence()
          Returns the image from where the image data is extracted.
 double[] getPreintegratedFilteredImageDataArray()
          Returns a one dimensional array containing the pixel values of the image after applying a smoothed Laplacian filter after preintegration of the active channel.
 double[] getPreintegratedImageDataArray()
          Returns a one dimensional array containing the pixel values of the original image after preintegration of the active channel.
 double getSigma()
          Returns the standard deviation of the Gaussian kernel used for smoothing.
 boolean isLUTUpToDate()
          If true, the LUTs are consistent with the input parameters.
 void setChannelNumber(int channelNumber)
          Sets the active channel.
 void setSequence(icy.sequence.Sequence sequence)
          Sets the active image from where the data is extracted.
 void setSigma(double sigma)
          Sets the standard deviation of the Gaussian kernel used for smoothing.
 java.lang.String toString()
          Returns a string with all the information of the LUT.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ID_SIGMA

public static final java.lang.String ID_SIGMA
Label of the XML tag containing the standard deviation of the Gaussian smoothing applied to the input image when computing the contour energy.

See Also:
Constant Field Values

ID_ACTIVECHANNEL

public static final java.lang.String ID_ACTIVECHANNEL
Label of the XML tag containing the information of the channel number used in the snake.

See Also:
Constant Field Values
Constructor Detail

ImageLUTContainer

public ImageLUTContainer()
Default constructor.

Method Detail

buildLUTs

public void buildLUTs()
               throws java.lang.Exception
Constructs the look-up-tables that the snake needs to function.

Throws:
java.lang.Exception

isLUTUpToDate

public boolean isLUTUpToDate()
If true, the LUTs are consistent with the input parameters.


toString

public java.lang.String toString()
Returns a string with all the information of the LUT.

Overrides:
toString in class java.lang.Object

setChannelNumber

public void setChannelNumber(int channelNumber)
Sets the active channel.


getChannelNumber

public int getChannelNumber()
Returns the active channel.


setSigma

public void setSigma(double sigma)
Sets the standard deviation of the Gaussian kernel used for smoothing.


getSigma

public double getSigma()
Returns the standard deviation of the Gaussian kernel used for smoothing.


setSequence

public void setSequence(icy.sequence.Sequence sequence)
Sets the active image from where the data is extracted.


getOriginalSequence

public icy.sequence.Sequence getOriginalSequence()
Returns the image from where the image data is extracted.


getImageWidth

public int getImageWidth()
Returns the with in pixels of the image.


getImageHeight

public int getImageHeight()
Returns the height in pixels of the image.


getImageDataArray

public double[] getImageDataArray()
Returns a one dimensional array containing the pixel values of the original image of the active channel.


getFilteredImageDataArray

public double[] getFilteredImageDataArray()
Returns a one dimensional array containing the pixel values of the image after applying a smoothed Laplacian filter of the active channel.


getPreintegratedImageDataArray

public double[] getPreintegratedImageDataArray()
Returns a one dimensional array containing the pixel values of the original image after preintegration of the active channel.


getPreintegratedFilteredImageDataArray

public double[] getPreintegratedFilteredImageDataArray()
Returns a one dimensional array containing the pixel values of the image after applying a smoothed Laplacian filter after preintegration of the active channel.