Code covered by the BSD License  

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

» Watch video

Highlights from
Multithreaded Bilateral filter

2.5
2.5 | 2 ratings Rate this file 5 Downloads (last 30 days) File Size: 3.03 KB File ID: #26745 Version: 1.0

Multithreaded Bilateral filter

by

 

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

| Watch this File

File Information
Description

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

MATLAB release MATLAB 7.4 (R2007a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (3)
29 Dec 2015 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).

06 Mar 2010 German Voronov

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++)
{

Comment only
06 Mar 2010 German Voronov

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++)
{

Contact us