Is there a way of labeling multiple objects within an image or each object would be separated to get the results on their feature basis?

2 views (last 30 days)
should the labeling for svm done in a single image having multiple objects or the objects in the image should be seperated to be dealt individualy?
Is there a way of labeling multiple objects within an image or each object would be separated to get the results on their feature basis?

Answers (1)

Image Analyst
Image Analyst on 3 May 2014
Edited: Image Analyst on 3 May 2014
Doesn't multi-class SVM output a labeled image directly? Each class will have a label, for example all circles will have a label #1 and all pixels in squares will have a label #2. This is a classified image. Then you can use ismember() to extract out just the circles or squares and use bwlabel or bwconncomp to give each circle (or square) a unique number like 1,2,3,4,5,...N for the N circles (or squares) that are there in the image.
  2 Comments
Sheema Khattak
Sheema Khattak on 5 May 2014
You mean to say that I only need a labeling matrix and the rest task is of svm how to classify objects in image while bwlabel() is something different only assigning unique number to an object in the image so I infer that no need to use bwlabel()for svm,it works without using bwlalbel().

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!