Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Changed the subsampling for the NURBS to 1, essentially disabling it.…

… This will slow down the NURBS considerably, but produce much smoother results for the Apollo dataset.
  • Loading branch information...
commit 0ed1d7978221993217daf7cbfa1dc5dc81dfd65d 1 parent 138f5b2
@broxtronix broxtronix authored
Showing with 4 additions and 5 deletions.
  1. +3 −3 config.options.example
  2. +1 −2  src/stereo.cc
View
6 config.options.example
@@ -55,9 +55,9 @@
# Look at the output from ./configure to see what modules will
# ultimately be built.
-# ENABLE_MODULE_STEREO=no
-# ENABLE_MODULE_ORTHOPROJECT=no
-# ENABLE_MODULE_BUNDLEADJUST=yes
+# ENABLE_APP_STEREO=no
+# ENABLE_APP_ORTHOPROJECT=no
+# ENABLE_APP_BUNDLEADJUST=yes
### Package Base Paths
View
3  src/stereo.cc
@@ -365,14 +365,13 @@ int main(int argc, char* argv[]) {
// done with a subsampled (by 4) images and then the hole filled
// values are upsampled to the full resolution of the image
// using bicubic interpolation.
-
ImageViewRef<PixelDisparity<float> > hole_filled_disp_map = filtered_disparity_map;
if(stereo_settings().fill_holes_NURBS) {
DiskImageView<uint8> Lmask(out_prefix + "-lMask.tif");
DiskImageView<uint8> Rmask(out_prefix + "-rMask.tif");
std::cout << "Filling holes with bicubicly interpolated B-SPLINE surface... \n";
- hole_filled_disp_map = disparity::mask(HoleFillView(filtered_disparity_map, 4),Lmask, Rmask);
+ hole_filled_disp_map = disparity::mask(HoleFillView(filtered_disparity_map, 1),Lmask, Rmask);
}
DiskImageResourceOpenEXR disparity_map_rsrc(out_prefix + "-F.exr", hole_filled_disp_map.format() );
Please sign in to comment.
Something went wrong with that request. Please try again.