picture.filter
Class MatrixFilter
java.lang.Object
|
+--picture.DefaultTransformation
|
+--picture.filter.MatrixFilter
- All Implemented Interfaces:
- ProgressViewableTransformation, java.io.Serializable, Transformation
- public class MatrixFilter
- extends DefaultTransformation
Diese Klasse implementiert Matrixfilter.
Das sind Filter, bei denen der neue Wert eines Pixels durch die
umgebenden bestimmt wird, gewichtet durch die Matrix. Randpixel
werden dabei nicht bearbeitet.
- See Also:
- Serialized Form
Field Summary |
protected double[][] |
matrix
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
matrix
protected double[][] matrix
MatrixFilter
public MatrixFilter()
setMatrix
public void setMatrix(double[][] matrix)
throws PictureException
getSize
public int getSize()
- Liefert die aktuelle Größe der Filtermatrix.
getValue
public double getValue(int x,
int y)
setValue
public void setValue(double c,
int x,
int y)
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
- Parentframepic
- zu berbeitendes Bild- Returns:
- OptionenDialog