// You should have received a copy of the GNU General Public License //
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
// //
-// Written by Francois Fleuret, (C) IDIAP //
+// Written by Francois Fleuret //
+// (C) Idiap Research Institute //
+// //
// Contact <francois.fleuret@idiap.ch> for comments & bug reports //
///////////////////////////////////////////////////////////////////////////
}
}
- const unsigned int var_square_size = 16;
+ const int var_square_size = 16;
int k00 = - 2 + width * (- 2);
int k01 = - 1 + width * (- 2);
y - int(var_square_size/2) >= 0 &&
y + int(var_square_size/2) < height) {
- unsigned int s =
+ int s =
+ local_sum_pixel_map[ - var_square_size/2 + width * ( - var_square_size / 2)]
+ local_sum_pixel_map[ + var_square_size/2 + width * ( + var_square_size / 2)]
- local_sum_pixel_map[ - var_square_size/2 + width * ( + var_square_size / 2)]
- local_sum_pixel_map[ + var_square_size/2 + width * ( - var_square_size / 2)];
- unsigned int s_sq =
+ int s_sq =
+ local_sum_sq_pixel_map[ - var_square_size/2 + width * ( - var_square_size / 2)]
+ local_sum_sq_pixel_map[ + var_square_size/2 + width * ( + var_square_size / 2)]
- local_sum_sq_pixel_map[ - var_square_size/2 + width * ( + var_square_size / 2)]
delete[] scale_pixel_maps;
}
-void RichImage::crop(int xmin, int ymin, int width, int height) {
- free();
- Image::crop(xmin, ymin, width, height);
-}
-
RichImage::RichImage() : Image() {
_width_at_scale = 0;
_height_at_scale = 0;