Code covered by the BSD License  

Highlights from
Soft thresholding for image segmentation

4.5

4.5 | 2 ratings Rate this file 177 Downloads (last 30 days) File Size: 4.51 KB File ID: #36918
image thumbnail

Soft thresholding for image segmentation

by SANTIAGO AJA-FERNANDEZ

 

29 May 2012 (Updated 11 Jul 2013)

Image segmentation based on histogram soft thresholding

| Watch this File

File Information
Description

SEG_FUZZY is a soft thresholding method for image segmentation. The method is based on relating each pixel in the image to the different regions via a membership function, rather than through hard decisions. The membership function of each of the regions is derived from the histogram of the image. As a consequence, each pixel will belong to different regions with a different level of membership. This feature is exploited through spatial processing to make the thresholding robust to noisy environments.

Method proposed in:

Santiago Aja-Fernández, Gonzalo Vegas-Sánchez-Ferrero, Miguel A. Martín Fernández, Soft thresholding for medical image segmentation, EMBC'2010, Buenos Aires, Sept. 2010.

Acknowledgements

Elmat+ 2.2 inspired this file.

MATLAB release MATLAB 7 (R14)
Tags for This File  
Everyone's Tags
fuzzy, image processing(2), segmentation(2), thresholding
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (10)
22 Jul 2013 Ramkumar

thank u for sharing

08 Jul 2013 Omar Al Okashi

Dear Sir..
Thanx alot about sharing... I can not run it because of this error:

??? Error using ==> shiftmat
Too many input arguments.

Error in ==> seg_fuzzy at 207
M_tmp = shiftmat(Mx,i,1);

can you explain us how to implement it..
with my Regards...

14 Mar 2013 Edwin

Thanks for your sharing. would you please tell me how you show the threshold image after running the code?

Thanks for your help in advanced!

30 Aug 2012 Darlis Herumurti

Thank you so much for your sharing code, it is very impressive.
I've read your paper and I would like to ask about the median MG (step 6). I confuse the use of MG and about calculating the MX in step 5 and step 6, since in your code, you didn't do anything about MG.
Thank you very much for your kind response.

25 Jun 2012 SANTIAGO AJA-FERNANDEZ

Modify anything you want, of course. It should be easy. I cannot say when next version will be ready, sorry. I'll try to do it along these months.

22 Jun 2012 leila

thank you. I want to try it on 3d US images, can I change it? when the next version will be written?
thanks.

18 Jun 2012 SANTIAGO AJA-FERNANDEZ

The function is a basic implementation thought for 2D, but with very small changes it could work for 3D. The square neighborhoods used for smoothing and aggregation must be replaced by 3D neighborhoods. (I'll do it for the next version...)

15 Jun 2012 leila

does the function support 3d images?

01 Jun 2012 SANTIAGO AJA-FERNANDEZ

The original file lacks of a control for more than 5 output sets. New version with problem corrected is added.

31 May 2012 Sven

Your example itself fails with an error:

>> [S,MG,Nmax]=seg_fuzzy(I,1,2)

Undefined function or variable "Mx".

Error in seg_fuzzy (line 196)
Mx2(:,:,1)=Mx;

Updates
01 Jun 2012

Bug corrected for more than 5 maxima in smoothed histogram

08 May 2013

Version 3: It admits 3D data and rgb images. It has no limit of number of output sets. Some minor bugs were corrected

09 Jul 2013

A bug in shiftmat is corrected

11 Jul 2013

Small change to correct a bug in 3D

Contact us