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: Gerhard Reitmayr
Subject: [libcvd-members] libcvd/cvd image.h
Date: Wed, 08 Apr 2009 10:01:59 +0000

CVSROOT:        /cvsroot/libcvd
Module name:    libcvd
Changes by:     Gerhard Reitmayr <gerhard>      09/04/08 10:01:59

Modified files:
        cvd            : image.h 

Log message:
        added a copy_from member to subimage, uses simple std:copy

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

Patches:
Index: image.h
===================================================================
RCS file: /cvsroot/libcvd/libcvd/cvd/image.h,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -b -r1.42 -r1.43
--- image.h     1 Mar 2009 13:29:47 -0000       1.42
+++ image.h     8 Apr 2009 10:01:57 -0000       1.43
@@ -388,10 +388,10 @@
                        return ConstSubImageIteratorEnd<T>(this);
                }
 
-
-
-
-
+               inline void copy_from( const SubImage<T> & other ){
+                       CVD_IMAGE_ASSERT(other.size() == this->size(), 
ImageError::IncompatibleImageSizes);
+                       std::copy(other.begin(), other.end(), this->begin());
+               }
 
                /// What is the size of this image?
                inline ImageRef size() const




reply via email to

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