snakeprogram
Class IntensityEnergy

java.lang.Object
  extended by snakeprogram.IntensityEnergy
All Implemented Interfaces:
ImageEnergy

public class IntensityEnergy
extends java.lang.Object
implements ImageEnergy

Calculates an energy based on the intensity of the image. The snake points are pushed towards the brightest regions.


Constructor Summary
IntensityEnergy(ij.process.ImageProcessor img, double blur_sigma)
           
 
Method Summary
 double[] getImageEnergy(double x, double y)
          Given the coordinate points this will calculate the image energy and return the value as a double[] Ex Ey
 double getMaxPixel(double x, double y)
          This will use the squaresize defined in TwoDDeformation, and the original image to find the maximum pixel value in the square.
 ij.process.ImageProcessor getProcessor()
          returns the original imageprocessor, that has been converted to a float
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntensityEnergy

public IntensityEnergy(ij.process.ImageProcessor img,
                       double blur_sigma)
Method Detail

getImageEnergy

public double[] getImageEnergy(double x,
                               double y)
Description copied from interface: ImageEnergy
Given the coordinate points this will calculate the image energy and return the value as a double[] Ex Ey

Specified by:
getImageEnergy in interface ImageEnergy

getMaxPixel

public double getMaxPixel(double x,
                          double y)
Description copied from interface: ImageEnergy
This will use the squaresize defined in TwoDDeformation, and the original image to find the maximum pixel value in the square. This is used for determining the head force on the filament.

Specified by:
getMaxPixel in interface ImageEnergy

getProcessor

public ij.process.ImageProcessor getProcessor()
Description copied from interface: ImageEnergy
returns the original imageprocessor, that has been converted to a float

Specified by:
getProcessor in interface ImageEnergy