Using bwlabel() with a structuring element
2 次查看(过去 30 天)
显示 更早的评论
Hello I would like to try and use bwlabel() with a specific structuring element, is this possible?
se = strel('arbitrary',[1 1 1 1; 1 1 1 1; 1 1 1 1]);
Something like this one?
I'm making a detection algorithm and I am encountering a lot of false detection's, hopefully something like this se will reduce the number of false detections due to the fact that bwlabel() standard connectivity is of 8.
Can anyone suggest any other ideas.
Ive already used bwareaopen() imdialte() imerode()
I would also like to set bwlabel() to avoid labeling any connectivity of and anything below this matrix of 3x3 ones.
[1 1 1; 1 1 1; 1 1 1]
Is this possible?
1 个评论
Sean de Wolski
2014-12-10
Can you show an image? It sounds like you might want to do some morphological operations on it first, before the labeling.
回答(2 个)
Image Analyst
2014-12-10
编辑:Image Analyst
2014-12-10
That doesn't make sense. Labeling doesn't use a structuring element. The only choice you have is on the connectivity. You can choose 4 or 8. Perhaps you were thinking of changing the structuring element on some morphological operation instead of on the labeling operation.
You will get more blobs with 4 connectivity than with 8 since with 4 blobs that touch on a corner will be separate blobs with 4 connectivity but the same blob with 8 connectivity. It's best if you show an image if you want image processing advice.
4 个评论
Image Analyst
2014-12-10
The computer vision toolbox has a car tracking capability. Try that. Otherwise it's such a major job that I can't really build an app for you, or even give advice since tracking / surveillance is not my specialty. Sorry.
Sean de Wolski
2014-12-11
There are three or four different car tracking examples in there.
5 个评论
Sean de Wolski
2014-12-12
编辑:Sean de Wolski
2014-12-12
It require a conversation with a group here who I do my best to not have to interact with.
:(
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing and Computer Vision 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!