Browse Source

changed const status of member function call

Johannes Ruehle 12 years ago
parent
commit
a9d1d93f64
2 changed files with 2 additions and 2 deletions
  1. 1 1
      core/image/MultiChannelImageT.h
  2. 1 1
      core/image/MultiChannelImageT.tcc

+ 1 - 1
core/image/MultiChannelImageT.h

@@ -109,7 +109,7 @@ public:
    * @param channel channel
    * @return P mean value of given area
    **/
-  P getIntegralValue(int ulx, int uly, int lrx, int lry, int channel);
+  P getIntegralValue(int ulx, int uly, int lrx, int lry, int channel) const;
 
   /** convert to ice image */
   void convertToGrey( NICE::Image & img, uint channel = 0, bool normalize = true ) const;

+ 1 - 1
core/image/MultiChannelImageT.tcc

@@ -448,7 +448,7 @@ void MultiChannelImageT<P>::calcIntegral( uint channel )
 }
 
 template<class P>
-P MultiChannelImageT<P>::getIntegralValue(int ulx, int uly, int lrx, int lry, int channel)
+P MultiChannelImageT<P>::getIntegralValue(int ulx, int uly, int lrx, int lry, int channel) const
 {
   ulx = std::max(ulx-1, -1);
   ulx = std::min(ulx, xsize-1);