|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--picturedream.implementation.processor.Filter
Title: PictureDream
Description:
Copyright: Copyright (c) 2003 MRoc
Organisation: MRoc Audiosolutions
| Field Summary | |
protected FilterData[] |
ivFilters
|
protected FilterData |
ivSelectedFilter
|
| Constructor Summary | |
Filter()
|
|
| Method Summary | |
protected char[][] |
filter(char[][] channels,
int width,
int height,
double[][] coeffs,
double weight)
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)
|
FilterData |
getFilter(int index)
returns the indexed filter |
int |
getFilterCount()
returns the number of stored filter coeffs |
java.lang.String |
getName()
returns the processors name |
FilterData |
getSelectedFilter()
returns the selected filter |
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. |
void |
setSelectedFilter(FilterData d)
sets the selected filter |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
protected FilterData[] ivFilters
protected FilterData ivSelectedFilter
| Constructor Detail |
public Filter()
| Method Detail |
public char[][] process(char[][] channels,
int width,
int height)
process in interface IPictureProcessorchannels - - the channels to be processedpublic javax.swing.JComponent getEditor(IPicture preview)
getEditor in interface IPictureProcessorpublic java.lang.String getName()
getName in interface IPictureProcessorpublic int getFilterCount()
public FilterData getFilter(int index)
public FilterData getSelectedFilter()
public void setSelectedFilter(FilterData d)
protected char[][] filter(char[][] channels,
int width,
int height,
double[][] coeffs,
double weight)
channels - width - height - coeffs - weight -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||