net.aerith.misao.image.filter
Class SubtractionFilter

java.lang.Object
  |
  +--net.aerith.misao.image.filter.Filter
        |
        +--net.aerith.misao.image.filter.SubtractionFilter

public class SubtractionFilter
extends Filter

The SubtractionFilter is an image processing filter to subtract an image from the base image. The result is stored in the new image.


Field Summary
protected  MonoImage base_image
          The base image.
protected  MapFunction map_function
          The map function to convert (x,y) on the specified image to (x,y) on the base image.
 
Fields inherited from class net.aerith.misao.image.filter.Filter
monitor_set
 
Constructor Summary
SubtractionFilter(MonoImage base_image)
          Constructs a filter.
 
Method Summary
 MonoImage operate(MonoImage image)
          Operates the image processing filter and creates the new image buffer.
 void setMapFunction(MapFunction map_function)
          Sets the map function.
 
Methods inherited from class net.aerith.misao.image.filter.Filter
addMonitor, setMonitor
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

base_image

protected MonoImage base_image
The base image.

map_function

protected MapFunction map_function
The map function to convert (x,y) on the specified image to (x,y) on the base image.
Constructor Detail

SubtractionFilter

public SubtractionFilter(MonoImage base_image)
Constructs a filter.
Parameters:
base_image - the base image.
Method Detail

setMapFunction

public void setMapFunction(MapFunction map_function)
Sets the map function.
Parameters:
map_function - the map function to convert (x,y) on the specified image to (x,y) on the base image.

operate

public MonoImage operate(MonoImage image)
Operates the image processing filter and creates the new image buffer.
Overrides:
operate in class Filter
Parameters:
image - the original image to process.
Returns:
the new image buffer.