picture.filter
Class MorphFilter

java.lang.Object
  |
  +--picture.DefaultTransformation
        |
        +--picture.filter.MorphFilter
All Implemented Interfaces:
ProgressViewableTransformation, java.io.Serializable, Transformation

public class MorphFilter
extends DefaultTransformation

Diese Klasse implementiert Morphfilter. Das sind Filter, bei denen der neue Wert eines Pixels durch die umgebenden bestimmt wird. Ergebis ist ein reelles Bild, das aus der ausgewählten Präsentation gewonnen wurde.

See Also:
Serialized Form

Field Summary
static int MAX
           
static int MEDIAN
           
static int MIN
           
protected  int r
           
 
Constructor Summary
MorphFilter()
           
MorphFilter(int type)
           
 
Method Summary
 DialogPane filterOptionPane(javax.swing.JFrame owner, Picture pic)
          Liefert einen Optionendialog zurück.
 int getNumberOfProgressSteps(Picture p)
          Bestimmt die Anzahl der Schritte, die bei den aktuellen Einstellungen auf den ProgressHandler von p ausgeführt werden, wenn diese Transformation auf p ausgeführt wird.
 int getRadius()
           
 int getType()
           
 Layer of(ProgressHandler ph, Layer p)
          Fuehrt die Transformation auf einer Bildebene aus.
 void setRadius(int r)
           
 void setType(int t)
           
 
Methods inherited from class picture.DefaultTransformation
createNewInstance, getDistance, getPreferredFileName, isPowerOfTwo, loadFrom, of, saveTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MEDIAN

public static final int MEDIAN

MIN

public static final int MIN

MAX

public static final int MAX

r

protected int r
Constructor Detail

MorphFilter

public MorphFilter()

MorphFilter

public MorphFilter(int type)
Method Detail

getRadius

public int getRadius()

setRadius

public void setRadius(int r)

getType

public int getType()

setType

public void setType(int t)

getNumberOfProgressSteps

public int getNumberOfProgressSteps(Picture p)
Description copied from interface: ProgressViewableTransformation
Bestimmt die Anzahl der Schritte, die bei den aktuellen Einstellungen auf den ProgressHandler von p ausgeführt werden, wenn diese Transformation auf p ausgeführt wird.
Following copied from interface: picture.ProgressViewableTransformation
Returns:
Anzahl der Schritte

of

public Layer of(ProgressHandler ph,
                Layer p)
         throws PictureException
Description copied from class: DefaultTransformation
Fuehrt die Transformation auf einer Bildebene aus.
Overrides:
of in class DefaultTransformation

filterOptionPane

public DialogPane filterOptionPane(javax.swing.JFrame owner,
                                   Picture pic)
                            throws PictureException
Liefert einen Optionendialog zurück.
Overrides:
filterOptionPane in class DefaultTransformation
Parameters:
owner - Parentframe
pic - zu berbeitendes Bild
Returns:
OptionenDialog