X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=image.cc;h=5162ea37d1d9b2110bbf2eb012c640b7cc5c7491;hb=5b78a555f6c7ff20a71d0520db63bc43e69e1f41;hp=e9eb83fed29b0d0ee0229d3e3ff503038f0107ab;hpb=d922ad61d35e9a6996730bec24b16f8bf7bc426c;p=folded-ctf.git
diff --git a/image.cc b/image.cc
index e9eb83f..5162ea3 100644
--- a/image.cc
+++ b/image.cc
@@ -12,7 +12,9 @@
// You should have received a copy of the GNU General Public License //
// along with this program. If not, see . //
// //
-// Written by Francois Fleuret, (C) IDIAP //
+// Written by Francois Fleuret //
+// (C) Idiap Research Institute //
+// //
// Contact for comments & bug reports //
///////////////////////////////////////////////////////////////////////////
@@ -34,21 +36,6 @@ Image::~Image() {
delete[] _content;
}
-void Image::crop(int xmin, int ymin, int width, int height) {
- ASSERT(xmin >= 0 && xmin + width <= _width &&
- ymin >= 0 && ymin + height <= _height);
- unsigned char *new_content = new unsigned char[width * height];
- for(int y = 0; y < height; y++) {
- for(int x = 0; x < width; x++) {
- new_content[x + (y * width)] = _content[x + xmin + _width * (y + ymin)];
- }
- }
- delete[] _content;
- _content = new_content;
- _width = width;
- _height = height;
-}
-
void Image::to_rgb(RGBImage *image) {
int c;
for(int y = 0; y < _height; y++) {