Clear Filters
Clear Filters

Predicted Classification Response to Label Matrix

1 view (last 30 days)
Hello everybody
I have a question that seems pretty basic but I am not sure if there is an answer online for it. Is it possible somehow to get a label matrix back from the prediction response of a classifier (decision tree in my case). I have the values (and the string names) given from the classifier and I would like to assign them to a label image. I have already created a label image before (with bwboundaries()) for a previous step.
So the overall question is how is possible to connect the prediction of a classifier with a region labeled image ?
Thank you in advance
  4 Comments
Dimitris M
Dimitris M on 12 Jun 2012
OK. So I have a label images produced with the function bwboundaries(). I have used this labeled image region (and its true color image) to classify it according to a training set I created.
The problem is that the values in the labeled image are not the same as the numbers the classifier assigns to the classification result. My question is how from the classification numbers assigned by the classifier I can go back to a label image (so I can color it according to the result). Is there a way to move backwards after classification and visualize the image objects according to their class ?
If my question is still not clear to you let me know, so I can explain further.
Thank you in advance
Tom Lane
Tom Lane on 12 Jun 2012
Sorry, I really don't know much about image processing. I don't understand what data you would use to create the classifier and what output you would hope to get in doing the prediction. Maybe someone else with more image processing knowledge can help.

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!