br.usp.ime.klava.segmentit.filters
Class WeightedGradient

java.lang.Object
  extended by br.usp.ime.klava.segmentit.filters.WeightedGradient
All Implemented Interfaces:
ColorFilter, Filter, ParameterizedFilter

public class WeightedGradient
extends java.lang.Object
implements ColorFilter, ParameterizedFilter

Filter that returns the weighted gradient of the input image, using the 3x3 square structuring element.

Color Image Gradients for Morphological Segmentation: The Weighted Gradient Improved by Automatic Imposition of Weights

Author:
Bruno Klava

Constructor Summary
WeightedGradient()
           
 
Method Summary
 void chooseParameters(java.awt.image.BufferedImage image)
          Method called when the parameterized filter is selected on the filters menu.
 java.awt.image.BufferedImage filter(java.awt.image.BufferedImage image)
          Returns the weighted gradient of the input image.
 java.lang.String getName()
          Returns the name of the filter.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WeightedGradient

public WeightedGradient()
Method Detail

getName

public java.lang.String getName()
Description copied from interface: Filter
Returns the name of the filter.

Specified by:
getName in interface Filter
Returns:
the name of the filter

filter

public java.awt.image.BufferedImage filter(java.awt.image.BufferedImage image)
Returns the weighted gradient of the input image.

Specified by:
filter in interface ColorFilter
Specified by:
filter in interface Filter
Parameters:
image - the image to be filtered
Returns:
the weighted gradient of the input image image

chooseParameters

public void chooseParameters(java.awt.image.BufferedImage image)
Description copied from interface: ParameterizedFilter
Method called when the parameterized filter is selected on the filters menu. In order to set the derived filtered image, one can use the method setFilteredImage on SegmentationContainer.

Specified by:
chooseParameters in interface ParameterizedFilter
Parameters:
image - the original image to be filtered
See Also:
SegmentationContainer.setFilteredImage(BufferedImage, Filter)