Assign identification number to image

4 views (last 30 days)
image-pro
image-pro on 9 May 2022
Edited: Walter Roberson on 10 May 2022
i am working in mri brain tumor detection. i have two images to detect tumor but in step 1 first i have to assign identification number to image how this is possible?anyone please help
or suggest me technique or way or method to do this
  3 Comments
image-pro
image-pro on 10 May 2022
what is the need of labelling image in mri tumor detection? can anyone explain this?

Sign in to comment.

Answers (3)

Image Analyst
Image Analyst on 9 May 2022
Edited: Image Analyst on 9 May 2022
Try text if you want to put a number into the graphical overlay above the image.
Try insertText if you want to burn the text into image pixels (changing the image). insertText requires the Computer Vision Toolbox.
To label individual blobs in your image, use bwlabel and see the attached demo.

Walter Roberson
Walter Roberson on 10 May 2022
Edited: Walter Roberson on 10 May 2022
You are asking for the wrong thing. What you need to do is create a matrix the same size as your image, in which each location is a code indicating what kind of data is in the image.
For example the "label image" might use the value 0 for things outside of the brain, 1 for skull, 3 for blood vessels, 4 for healthy brain tissue, 5 for benign tumour, 6 for invasive tumour.
It is not uncommon for people to reduce that to 0 for background, 1 for healthy, 2 for tumour.

Image Analyst
Image Analyst on 10 May 2022
You may want to check out my attached brain tumor demo.

Community Treasure Hunt

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

Start Hunting!