Re: How does bwlabel work?
- From: Steve Eddins <Steve.Eddins@xxxxxxxxxxxxx>
- Date: Thu, 31 Jan 2008 08:58:00 -0500
Ross asked about the order in which bwlabel searches for connected components, and whether it's possible to change that order.
Yumnam wrote:
> BWlabel basically finds the connected components of a
> binary image. All the pixels in a connected components are
> given a level. The searching of the connected components is
> done in the coulmn-wise fashion, in other words, in
> top-to-bottom scan order. All pixels in the first conected
> component is labeled 1 and those in the second as 2 and so on.
Right. Some ordering changes can happen when two or more sets of pixels are initially assigned different labels, but later the algorithm discovers they actually belong to the same object.
There's no way to tell bwlabel to search in a different order. If it did search in a different order, it would run significantly slower because of memory cache effects.
Wolfgang Schwanghart wrote:
See:
http://blogs.mathworks.com/steve/category/connected-components/
Thanks for the plug, Wolfgang.
Since this question has come up multiple times, I've added "show how to post-process output of bwlabel to sort object labels as desired" to my list of potential blog topics. Watch for it, maybe soon.
---
Steve Eddins
http://blogs.mathworks.com/steve/
.
- Follow-Ups:
- Re: How does bwlabel work?
- From: Walter Roberson
- Re: How does bwlabel work?
- References:
- Re: How does bwlabel work?
- From: Vihang Patil
- Re: How does bwlabel work?
- From: Yumnam Kirani Singh
- Re: How does bwlabel work?
- From: Wolfgang Schwanghart
- Re: How does bwlabel work?
- Prev by Date: solving trignometric equ for non trivial solutions
- Next by Date: Re: MEX files and memory allocation
- Previous by thread: Re: How does bwlabel work?
- Next by thread: Re: How does bwlabel work?
- Index(es):
Relevant Pages
|