picturedream.implementation.processor
Class MedianFilter
java.lang.Object
|
+--picturedream.implementation.processor.MedianFilter
- All Implemented Interfaces:
- IPictureProcessor
- public class MedianFilter
- extends java.lang.Object
- implements IPictureProcessor
Title: PictureDream
Description:
Copyright: Copyright (c) 2003 MRoc
Organisation: MRoc Audiosolutions
- Version:
- 1.0
- Author:
- MRoc mail@mroc.de
|
Method Summary |
protected char[][] |
filter(char[][] channels,
int width,
int height)
this method does a discrete convolution. it convolutes the channel data
with the given coeff matrix and the given weight. for that it uses the
so called 'output side' algo which allways calculates one whole
output pixel. the algo is implemented in two loops using a index
array. |
javax.swing.JComponent |
getEditor(IPicture preview)
|
java.lang.String |
getName()
returns the processors name |
void |
print(char[] array)
|
char[][] |
process(char[][] channels,
int width,
int height)
processes the given channels and returns the modified version.
can also directly work with the given data and can return
this. |
| Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
EROSTION
public static final int EROSTION
MEDIAN
public static final int MEDIAN
DILATATION
public static final int DILATATION
ivMode
public int ivMode
MedianFilter
public MedianFilter()
process
public char[][] process(char[][] channels,
int width,
int height)
- processes the given channels and returns the modified version.
can also directly work with the given data and can return
this.
- Specified by:
process in interface IPictureProcessor
- Parameters:
channels - - the channels to be processed- Returns:
- the processed channels
getEditor
public javax.swing.JComponent getEditor(IPicture preview)
- Specified by:
getEditor in interface IPictureProcessor
getName
public java.lang.String getName()
- returns the processors name
- Specified by:
getName in interface IPictureProcessor
filter
protected char[][] filter(char[][] channels,
int width,
int height)
- this method does a discrete convolution. it convolutes the channel data
with the given coeff matrix and the given weight. for that it uses the
so called 'output side' algo which allways calculates one whole
output pixel. the algo is implemented in two loops using a index
array.
- Parameters:
channels - width - height - coeffs - weight - - Returns:
-
print
public void print(char[] array)