File Exchange

Simple single-seeded region growing

version 1.1 (1.34 KB) by

Segmentation by growing a region from user defined seed point, using intensity mean measure.

Updated

Simple and efficient (only one loop) example of "Region Growing" algorithm from a single seed point.

The region is iteratively grown by comparing all unallocated neighbouring pixels to the region, using mathematical morphology. The difference between a pixel's intensity value and the region's mean is used as a measure of similarity. The pixels within the parameter tolerance boundaries around the region's intensities mean are allocated to the region.

This process stops when the regions stops its evolution from an iteration to the next.

Comments and feedback would be very much appreciated, thanks!!!

DefStef

DefStef (view profile)

@Nick no, no, sorry: what I am actually telling you is to go fu** yourself! If you are too damn lazy to try to understand the piece of code, you just don't deserve it! Man, like I owe you something... so yeah, just go fu** yourself! Cheers!

Nick

Nick (view profile)

Modern cars have hundreds of thousands of lines of code in them. You are telling me that if I want to turn on my windscreen wipers "just **read** the code."

DefStef

DefStef (view profile)

@sat maayy I am sure you are bright enough to figure this all out by yourself. To everyone: everything is there, directly accessible to you; just **read** the code.

sat maayy

sat maayy (view profile)

where is example? what are input values?

Please Explain the working of while loop & its inside variables..............how are they working?

Antara Choudhury

Antara Choudhury (view profile)

what is the tolerance value?

what is tolerance?

Uzair Hassan

Odine Salloum

Odine Salloum (view profile)

and if yes it is one function
How do I call it in the main script?

Odine Salloum

Odine Salloum (view profile)

hi
Thanks for the code
one question is all the code is one function? I mean is it all in one script? or it is divided into 2 scripts: one for the function and the other for the main script (main code)?
Thank you

elif yoldas

afshin shoeibi

afshin shoeibi (view profile)

its very good matlab code.
thanking you

DefStef

DefStef (view profile)

@Zubda just read the File Information / Description: "The pixels within the parameter tolerance boundaries around the region's intensities mean are allocated to the region"

Zubda Butt

Zubda Butt (view profile)

Can anyone please tell me what is the input argument tolerance value?

tarrouzi salem

Good Project

Sankar Ganesh

Sankar Ganesh (view profile)

what will be the value of tolerance, Igray, x and y in this code?

Najiya Khaleel

shelmi mathai

syed umar

Alfredo

Alfredo (view profile)

I would said that this function is limited to small images only, if you change the int8(x) and int8(y) by int16(x) and int16(y), you may be able to work with bigger and difficult images. the black issue seams not solved. can you explain us the functioning or maybe an example so we use your function! Great function!!!!

NITHYA V R

Manjunathan

Anton Semechko

Anton Semechko (view profile)

only applicable for 2D images

sunshine

sunshine (view profile)

very good!
But can you give a specific explanation how to use the function? What does the parametre 'tolerance' mean? how to set its value?

 6 Apr 2012 1.1 Fix added for the case of black regions.
MATLAB Release
MATLAB 7.10 (R2010a)