[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libcvd-members] libcvd/cvd vector_image_ref.h
From: |
Gerhard Reitmayr |
Subject: |
[libcvd-members] libcvd/cvd vector_image_ref.h |
Date: |
Wed, 17 Nov 2010 09:22:42 +0000 |
CVSROOT: /cvsroot/libcvd
Module name: libcvd
Changes by: Gerhard Reitmayr <gerhard> 10/11/17 09:22:42
Modified files:
cvd : vector_image_ref.h
Log message:
reordered definitions so that ir_rounded exists when used - problem
here on OSX
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/libcvd/cvd/vector_image_ref.h?cvsroot=libcvd&r1=1.10&r2=1.11
Patches:
Index: vector_image_ref.h
===================================================================
RCS file: /cvsroot/libcvd/libcvd/cvd/vector_image_ref.h,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -b -r1.10 -r1.11
--- vector_image_ref.h 17 Nov 2010 02:35:24 -0000 1.10
+++ vector_image_ref.h 17 Nov 2010 09:22:42 -0000 1.11
@@ -45,14 +45,6 @@
return ImageRef((int)v[0], (int)v[1]);
}
- /// Rescale an ImageRef by a scaling factor
- /// @param v The Vector to convert
- /// @ingroup gImage
- inline ImageRef ir_rescale_rounded(const ImageRef &v, double
rescaling_factor)
- {
- return ir_rounded(vec(v) * rescaling_factor);
- }
-
/// Convert a Vector into an image co-ordinate. Numbers are rounded
/// @param v The Vector to convert
/// @ingroup gImage
@@ -62,6 +54,15 @@
static_cast<int>(v[0] > 0.0 ? v[0] + 0.5 : v[0] - 0.5),
static_cast<int>(v[1] > 0.0 ? v[1] + 0.5 : v[1] - 0.5));
}
+
+ /// Rescale an ImageRef by a scaling factor
+ /// @param v The Vector to convert
+ /// @ingroup gImage
+ inline ImageRef ir_rescale_rounded(const ImageRef &v, double
rescaling_factor)
+ {
+ return ir_rounded(vec(v) * rescaling_factor);
+ }
+
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libcvd-members] libcvd/cvd vector_image_ref.h,
Gerhard Reitmayr <=