[Wavelet-commit] Wavelet/WImage Image.hh,1.16,1.17
Status: Beta
Brought to you by:
herbert
From: Herbert M. D. <he...@us...> - 2007-08-10 17:55:54
|
Update of /cvsroot/wavelet/Wavelet/WImage In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv6309/WImage Modified Files: Image.hh Log Message: Added a smart option to the ImageResizer, so that it can now do fully smart cropping. Index: Image.hh =================================================================== RCS file: /cvsroot/wavelet/Wavelet/WImage/Image.hh,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** Image.hh 7 Aug 2007 17:01:00 -0000 1.16 --- Image.hh 10 Aug 2007 17:55:45 -0000 1.17 *************** *** 456,459 **** --- 456,475 ---- * region. Use this method if you want statistics on a region in the * image. For other cases you may want to use ImageInformation::variance(). + * This version of the method takes the average (either absolute or signed) as + * argument so that it does not need to be calculated again. + * @param fromY the first point's row + * @param fromX the first point's col + * @param toY the second point's row (-1 if lower image border) + * @param toX the second point's col (-1 if right image border) + * @param avg the average for the region + * @param abs true if signs are discarded + * @return the square variance */ + virtual coeff variance (int fromY, int fromX, int toY, int toX, + coeff avg, bool abs) const; + + /** Return the variance for a rectangular region inside the image + * drawn from one point within and the second point just outside the + * region. Use this method if you want statistics on a region in the + * image. For other cases you may want to use ImageInformation::variance(). * @param fromY the first point's row * @param fromX the first point's col |