Core implementation is written in fragment shader.
See fshader.frag for implementation detail.
- Install Qt Creator (free)
- Open
BilatteralFiltering.pro
- Hit run
- 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)
- 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);
bysurfaceFormat.setMajorVersion(3);
- main.cpp: replace
surfaceFormat.setMinorVersion(5);
bysurfaceFormat.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
- main.cpp: replace