libcvd-members
[Top][All Lists]
Advanced

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

[libcvd-members] libcvd/cvd image.h


From: Edward Rosten
Subject: [libcvd-members] libcvd/cvd image.h
Date: Thu, 21 Sep 2006 18:54:25 +0000

CVSROOT:        /cvsroot/libcvd
Module name:    libcvd
Changes by:     Edward Rosten <edrosten>        06/09/21 18:54:25

Modified files:
        cvd            : image.h 

Log message:
        Conse correct subimage?
        
        ie:
        
        Image<byte> foo;
        SubImage<const byte> s = ((const)foo).sub_image(...);

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/libcvd/cvd/image.h?cvsroot=libcvd&r1=1.22&r2=1.23

Patches:
Index: image.h
===================================================================
RCS file: /cvsroot/libcvd/libcvd/cvd/image.h,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -b -r1.22 -r1.23
--- image.h     21 Jul 2006 01:01:31 -0000      1.22
+++ image.h     21 Sep 2006 18:54:25 -0000      1.23
@@ -426,9 +426,9 @@
                /// Return const a sub image
                /// @param start Top left pixel of the sub image
                /// @param size width and  height of the sub image
-               const SubImage sub_image(const ImageRef& start, const ImageRef& 
size) const
+               const SubImage<const T> sub_image(const ImageRef& start, const 
ImageRef& size) const
                {
-                       return SubImage( &operator[](start), size, my_stride);
+                       return SubImage<const T>( &operator[](start), size, 
my_stride);
                }
 
        protected:




reply via email to

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