Skip to content

tranvansang/bilateral-filter

Repository files navigation

Bilateral filter implementation in GLSL

Core implementation is written in fragment shader.

See fshader.frag for implementation detail.

Usage

  • Install Qt Creator (free)
  • Open BilatteralFiltering.pro
  • Hit run

Note:

  • This project is created using Qt 5.9.1
  • This project's default setting requires OpenGL core profile version 4.50. Version setting can be changed to any version from 3.30. See Note on GLSL version for detail
  • Tested in Ubuntu
  • Execute BilatteralFiltering.exe directly in Window to run program without compiling (non tested)

Note on GLSL version

  • This project uses GLSL version 4.50 by default.
  • Current GLSL implementation requires OpenGL version from 3.30
  • To configure GLSL version. For example, change from version 4.40 to 3.10. Update version setting in following files:
    • main.cpp: replace surfaceFormat.setMajorVersion(4); by surfaceFormat.setMajorVersion(3);
    • main.cpp: replace surfaceFormat.setMinorVersion(5); by surfaceFormat.setMinorVersion(1);
    • bilateralfilterwidget.h: replace #include <QOpenGLFunctions_4_5_Core> by #include <QOpenGLFunctions_3_1_Core>
    • vshader.vert: replace #version 450 by #version 310
    • fshader.frag: replace #version 450 by #version 310

Screenshots:

alt text

alt text

About

Bilateral filter implementation on GLSL

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published