snakeprogram
Interface ImageEnergy

All Known Implementing Classes:
IntensityEnergy

public interface ImageEnergy

An interface so that snake can adapt to different energy functions. The snake is always being pushed to the lowest energy. Copyright (c) 2010, Lehigh University All rights reserved. see COPYING for license.


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
 

Method Detail

getMaxPixel

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. This is used for determining the head force on the filament.


getImageEnergy

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


getProcessor

ij.process.ImageProcessor getProcessor()
returns the original imageprocessor, that has been converted to a float