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: Damian Eads
Subject: [libcvd-members] libcvd/cvd image.h
Date: Thu, 23 Sep 2010 18:14:23 +0000

CVSROOT:        /sources/libcvd
Module name:    libcvd
Changes by:     Damian Eads <eads>      10/09/23 18:14:23

Modified files:
        cvd            : image.h 

Log message:
        Added value_type member typedef to Image, BasicImage, and SubImage 
classes to make them more consistent with STL containers.

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

Patches:
Index: image.h
===================================================================
RCS file: /sources/libcvd/libcvd/cvd/image.h,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -b -r1.47 -r1.48
--- image.h     2 Jul 2009 16:24:01 -0000       1.47
+++ image.h     23 Sep 2010 18:14:23 -0000      1.48
@@ -341,6 +341,9 @@
                typedef SubImageIterator<T> iterator;
                typedef ConstSubImageIterator<T> const_iterator;
                
+               /// The data type of the pixels in the image.
+               typedef T value_type;
+               
                /// Returns an iterator referencing the first (top-left) pixel 
in the image
                inline iterator begin()
                {
@@ -510,6 +513,9 @@
                iterator steps through pixels in the usual scanline order. */
                typedef const T* const_iterator;
 
+               /// The data type of the pixels in the image.
+               typedef T value_type;
+
                /** Returns a const iterator referencing the first (top-left) 
pixel in the
                image. */
                const_iterator begin() const { return SubImage<T>::my_data; }
@@ -627,6 +633,10 @@
                };
 
        public:
+
+               /// The data type of the pixels in the image.
+               typedef T value_type;
+
                ///Copy constructor. This does not copy the data, it just 
creates a new
                ///reference to the image data
                ///@param copy The image to copy



reply via email to

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