Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/extern
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2013-04-06 18:47:45 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2013-04-06 18:47:45 +0400
commitf62d2669def640f2e448e8d677af0c04b5b53439 (patch)
tree308abc2e6e4f2f1e47ef52a9c4a603cad0b630f4 /extern
parent2ed2226ee753cc6a7a19806d99772efa61af897f (diff)
Revert change made to bilinear sampler in libmv
This made preview working but that broke internals of tracking. Namely, BlurredImageAndDerivativesChannels is giving much more blurred image because it was assuming pixel center is an integer position. Guess other parts of libmv used to suffer because of this issue. Now pixel centering happens in blender side, and libmv assumes integer position is a pixel center.
Diffstat (limited to 'extern')
-rw-r--r--extern/libmv/libmv/image/sample.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/extern/libmv/libmv/image/sample.h b/extern/libmv/libmv/image/sample.h
index a95d08a9815..24eb9ccd57d 100644
--- a/extern/libmv/libmv/image/sample.h
+++ b/extern/libmv/libmv/image/sample.h
@@ -59,10 +59,6 @@ inline T SampleLinear(const Array3D<T> &image, float y, float x, int v = 0) {
int x1, y1, x2, y2;
float dx, dy;
- // Take the upper left corner as integer pixel positions.
- x -= 0.5;
- y -= 0.5;
-
LinearInitAxis(y, image.Height(), &y1, &y2, &dy);
LinearInitAxis(x, image.Width(), &x1, &x2, &dx);
@@ -82,10 +78,6 @@ inline void SampleLinear(const Array3D<T> &image, float y, float x, T *sample) {
int x1, y1, x2, y2;
float dx, dy;
- // Take the upper left corner as integer pixel positions.
- x -= 0.5;
- y -= 0.5;
-
LinearInitAxis(y, image.Height(), &y1, &y2, &dy);
LinearInitAxis(x, image.Width(), &x1, &x2, &dx);