libcvd-members
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libcvd-members] libcvd/cvd/internal/io bmp.h


From: Edward Rosten
Subject: [libcvd-members] libcvd/cvd/internal/io bmp.h
Date: Thu, 15 May 2008 22:57:03 +0000

CVSROOT:        /cvsroot/libcvd
Module name:    libcvd
Changes by:     Edward Rosten <edrosten>        08/05/15 22:57:03

Modified files:
        cvd/internal/io: bmp.h 

Log message:
        Removed some debugging stuff

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/libcvd/cvd/internal/io/bmp.h?cvsroot=libcvd&r1=1.6&r2=1.7

Patches:
Index: bmp.h
===================================================================
RCS file: /cvsroot/libcvd/libcvd/cvd/internal/io/bmp.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- bmp.h       15 May 2008 22:54:11 -0000      1.6
+++ bmp.h       15 May 2008 22:57:02 -0000      1.7
@@ -95,11 +95,7 @@
     template <class T> void readBMP(Image<T>& im, std::istream& in) {
       unsigned int w,h,ch, comp;
       readBMPHeader(w,h,ch,comp,in);
-      if (comp || (ch != 3 && ch != 1)) 
-      {
-       std::cerr << comp << " " << ch << "\n";
-       throw CVD::Exceptions::Image_IO::UnsupportedImageType();
-       }
+
       im.resize(ImageRef(w,h));
       if (ch == 1)
        BMPReader<T,1>::read(im, in);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]