[Wavelet-commit] Wavelet/WTools ImageResizer.hh,1.2,1.3
Status: Beta
Brought to you by:
herbert
From: Herbert M. D. <he...@us...> - 2007-08-22 13:34:16
|
Update of /cvsroot/wavelet/Wavelet/WTools In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv32033/WTools Modified Files: ImageResizer.hh Log Message: Added methods for setting and returning the auto-optimization feature state for the ImageResizer class. Index: ImageResizer.hh =================================================================== RCS file: /cvsroot/wavelet/Wavelet/WTools/ImageResizer.hh,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ImageResizer.hh 10 Aug 2007 17:55:45 -0000 1.2 --- ImageResizer.hh 22 Aug 2007 13:34:09 -0000 1.3 *************** *** 75,89 **** * @return the inner average per size */ ! inline double getInnerAvgPerSize (void) { return m_innerAvgPerSize; } /** * Return the inner standard deviation (used for quality measurements) * @return the inner standard deviation */ ! inline double getInnerSDeviation (void) { return m_innerSDeviation; } /** * Return the size of the inner region used for the above calculation * @return the size of the inner region used for the above calculation */ ! inline int getInnerRegionSize (void) { return m_innerRegionSize; } /** --- 75,89 ---- * @return the inner average per size */ ! inline double getInnerAvgPerSize (void) const { return m_innerAvgPerSize; } /** * Return the inner standard deviation (used for quality measurements) * @return the inner standard deviation */ ! inline double getInnerSDeviation (void) const { return m_innerSDeviation; } /** * Return the size of the inner region used for the above calculation * @return the size of the inner region used for the above calculation */ ! inline int getInnerRegionSize (void) const { return m_innerRegionSize; } /** *************** *** 91,95 **** * @return the threshold for cropping-while-resizing */ ! inline double threshold (void) { return m_threshold; } /** * Set the threshold for cropping-while-resizing --- 91,95 ---- * @return the threshold for cropping-while-resizing */ ! inline double threshold (void) const { return m_threshold; } /** * Set the threshold for cropping-while-resizing *************** *** 97,100 **** --- 97,112 ---- */ inline void threshold (double threshold) { m_threshold = threshold; } + + /** + * Set the optimize-image-setting + * @param optimize true if optimization is active + */ + inline void optimizeImage (bool optimizeImage) { m_optimizeImage = optimizeImage; } + /** + * Return the optimize-image-setting + * @return true if optimization is active + */ + inline bool optimizeImage (void) { return m_optimizeImage; } + protected: /** |