File Exchange

image thumbnail

Multithreaded Bilateral filter

version 1.0 (3.03 KB) by

Example of a multithreaded implementation of a bilateral filter using a MEX file.

1 Download

Updated

View License

The provided MEX file uses process.h library so it will work only on windows machines. For other platforms please use pthread library.

Comments and Ratings (3)

Royi Avital

I think this code doesn't work.
Not only the issues raised by German Voronov but even after this fix something is wrong with the weights and the output is NAN (Just use the demo, display the image while the input image is noiseless).

I made a mistake in my previous comment. Here is an update
It looks like the loops definition in the thread function should be
for(j=ini;j<fin;j++)
for(i=0;i<cols;i++)
{
for(jj=0;jj<v;jj++)
for(ii=-v;ii<=v;ii++)
{

works fast but wrong and crashes
It looks like the loops definition in the thread function should be
for(j=ini;j<fin;j++)
for(i=0;i<cols;i++)
{
for(ii=-v;ii<=v;ii++)
for(jj=-v;jj<=v;jj++)
{

MATLAB Release
MATLAB 7.4 (R2007a)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Win prizes and improve your MATLAB skills

Play today