Coder Social home page Coder Social logo

templeblock / upsampling-bilateral-filter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sarafattouh/upsampling-bilateral-filter

0.0 1.0 0.0 1.69 MB

Apply a bilateral filter to upsample a depth image, guided by an RGB image.

C++ 94.91% CMake 5.09%

upsampling-bilateral-filter's Introduction

Upsampling Bilateral Filter

Apply a bilateral filter to upsample a depth image, guided by an RGB image.

Upsampling an input image (increasing of the spatial resolution) using a bilateral filter which is a non-linear, edge-preserving, and noise-reducing smoothing filter. It replaces the intensity of each pixel with a weighted average of intensity values from nearby pixels. This weight is based on a Gaussian distributio and it depends not only on Euclidean distance of pixels, but also on the radiometric differences (such as color intensity). This preserves sharp edges.

Parts of the program:

  • There is a CMakeLists.txt file for compilation.
  • The main.cpp file contains:
    • Implementation of a bilateral filter.
    • Some comparison metrics that can be used for comparing images like SSD, MSE, RMSE and PNSR.
    • A function that converts a bilateral filter to Guided Joint bilateral filter for guided image upsampling.

The main function takes as input:

  • aligned RGB and Depth/Disparity image pair
  • σs: first parameter of the bilateral filter, spatial filter kernel
  • σr: second parameter of the bilateral filter, spectral filter kernel AKA range kernel

The result can be found in the build directory

  • It contains the resulting upsampled disparity maps obtained by running the Bilateral filter on the image with combinations, 16 in total, of four different levels of sigmas for the spatial and four for the spectral filter.

Image pairs input could be found in Middlebury stereo dataset https://vision.middlebury.edu/stereo/data/ , or any of your choice.

plot

upsampling-bilateral-filter's People

Contributors

sarafattouh avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.