public class DWT
extends java.lang.Object
This class is conversion of C to Java for the file "dwt.c" file provided by Peter Meerwald at:http://www.cosy.sbg.ac.at/~pmeerw/Watermarking/
Refer to his thesis on watermarking: Peter Meerwald, Digital Image Watermarking in the Wavelet Transfer Domain, Master's Thesis, Department of Scientific Computing, University of Salzburg, Austria, January 2001.
Constructor and Description |
---|
DWT(int cols,
int rows,
int filterID,
int level,
int method)
Default constructor
|
Modifier and Type | Method and Description |
---|---|
ImageTree |
forwardDWT(int[][] pixels)
Method to perform forward DWT on the pixel data
|
ImageTree |
forwardDWTwp(int[][] pixels)
Method to perform forward DWT (WP) on the pixel data
|
void |
inverseDWT(ImageTree dwts,
int[][] pixels)
Method to perform inverse DWT to get back the pixel data
|
public DWT(int cols, int rows, int filterID, int level, int method)
cols
- Image widthrows
- Image heightfilterID
- Filter ID to uselevel
- Decomposition levelmethod
- Wavelet filtering methodpublic ImageTree forwardDWT(int[][] pixels)
pixels
- Image pixel datapublic ImageTree forwardDWTwp(int[][] pixels)
pixels
- Image pixel datapublic void inverseDWT(ImageTree dwts, int[][] pixels)
dwts
- DWT data as image treepixels
- Image pixel dataCopyright © 2007-2021 Samir Vaidya. All Rights Reserved.