From 9f4b4bd532b80f82e255ffa5d5be25e1f41e1e89 Mon Sep 17 00:00:00 2001 From: castano Date: Tue, 4 Mar 2008 00:13:44 +0000 Subject: [PATCH] Update comments about hole filling algorithms. --- src/nvimage/HoleFilling.cpp | 6 +++--- src/nvimage/HoleFilling.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/nvimage/HoleFilling.cpp b/src/nvimage/HoleFilling.cpp index a825a24..863dc16 100644 --- a/src/nvimage/HoleFilling.cpp +++ b/src/nvimage/HoleFilling.cpp @@ -296,7 +296,7 @@ static bool downsample(const FloatImage * src, const BitMap * srcMask, const Flo return true; } -// This is the filter used in the Lumigraph paper. The Unreal engine uses something similar. +// This is the filter used in the Lumigraph paper. void nv::fillPullPush(FloatImage * img, const BitMap * bmap) { nvCheck(img != NULL); @@ -644,8 +644,8 @@ struct LocalPixels -// This is a cubic extrapolation filter from Charles Bloom (DoPixelSeamFix). -void nv::fillCubicExtrapolate(int passCount, FloatImage * img, BitMap * bmap, int coverageIndex /*= -1*/) +// This is a quadratic extrapolation filter from Charles Bloom (DoPixelSeamFix). Used with his permission. +void nv::fillQuadraticExtrapolate(int passCount, FloatImage * img, BitMap * bmap, int coverageIndex /*= -1*/) { nvCheck(passCount > 0); nvCheck(img != NULL); diff --git a/src/nvimage/HoleFilling.h b/src/nvimage/HoleFilling.h index af667a7..b437e87 100644 --- a/src/nvimage/HoleFilling.h +++ b/src/nvimage/HoleFilling.h @@ -89,7 +89,7 @@ namespace nv NVIMAGE_API void fillPullPush(FloatImage * img, const BitMap * bmap); NVIMAGE_API void fillExtrapolate(int passCount, FloatImage * img, BitMap * bmap); - NVIMAGE_API void fillCubicExtrapolate(int passCount, FloatImage * img, BitMap * bmap, int coverageIndex = -1); + NVIMAGE_API void fillQuadraticExtrapolate(int passCount, FloatImage * img, BitMap * bmap, int coverageIndex = -1); } // nv namespace