"Karthik " <karthi24mar@gmail.com> wrote in message
news:k5ikc9$e64$1@newscl01ah.mathworks.com...
> Hi,
>
> Is there a way to do Connected Component labelling algorithm for an lung
> image WITHOUT USING THE DEFAULT MATLAB FUNCTIONS ????(bwconncomp,bwlabel
> etc)..
Depending on what you mean by "THE DEFAULT MATLAB FUNCTIONS", yes or no. I
think you'd be hard-pressed to do it with just keywords and non-indexed
assignment; you're probably going to need relational and perhaps arithmetic
operators.
> Is there any code for direct application of connected components??
Yes. They're called BWCONNCOMP, BWLABEL, etc.
My guess is that you've been asked as part of a homework assignment or
school project to do this and that's why you're not able to use the Image
Processing Toolbox functions. If that's the case, look at the documentation
pages for these functions. The Algorithm and References sections will give
you a description of what the function's doing and you may be able to
implement the same general procedure for your assignment. If not, your
textbook may offer pseudocode or the algorithm that you can implement as
MATLAB code.
http://www.mathworks.com/help/images/ref/bwconncomp.html
http://www.mathworks.com/help/images/ref/bwlabel.html
--
Steve Lord
slord@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com