[Wavelet-commit] Wavelet/WTools ImageComparison.hh,1.5,1.6
Status: Beta
Brought to you by:
herbert
From: Herbert M. D. <he...@us...> - 2009-04-12 16:57:58
|
Update of /cvsroot/wavelet/Wavelet/WTools In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv19809/WTools Modified Files: ImageComparison.hh Log Message: Added option for mirror extension when resizing an image using fitInto(), made method for calculating the Lq feature vector static in ImageComparison. Index: ImageComparison.hh =================================================================== RCS file: /cvsroot/wavelet/Wavelet/WTools/ImageComparison.hh,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** ImageComparison.hh 7 Aug 2007 17:01:00 -0000 1.5 --- ImageComparison.hh 12 Apr 2009 16:57:53 -0000 1.6 *************** *** 119,122 **** --- 119,142 ---- double distlqd (double percent, FilterSet &flt, imgtype type); + /** + * Calculates a feature vector for the $L^q$ and $L^qd$ metrics. + * @param image + * the image + * @param percent + * the relative number of Wavelet coefficients to keep + * @param flt + * the filter to use */ + static Image *truncateForLq (const Image &image, + double percent, FilterSet &flt); + /** + * Calculates a feature vector for the $L^q$ and $L^qd$ metrics. + * @param image + * the image + * @param nKeptCoeffs + * the absolute number of Wavelet coefficients to keep + * @param flt + * the filter to use */ + static Image *truncateForLq (const Image &image, + int nKeptCoeffs, FilterSet &flt); protected: /** Number of rows. */ |