Burned in annotations Dicom
Show older comments
Hi,
I have some manual burned in annotations in Dicom file of a lung HRCT scan. I need to extract the information of the annotations, thus, I need to know i.e. where exactly the annotations are located in order to identify that region in the raw Dicom file. I need to use this annotations to train a classifier, but I don't know how to do it. Can anyone help me?
Thank you in advance!
Answers (2)
sam0037
on 22 Dec 2015
0 votes
I understand that you want to extract manual burned in annotations from a DICOM file and by annotations you mean the METADATA of the corresponding DICOM file. If you wish to extract the METADATA from a DICOM file, you can use DICOMINFO or DICOMDISP function from the Image Processing Toolbox.
Refer to the following MATLAB Documentation links to know more about 'Reading METADATA from DICOM Files', DICOMDISP function and DICOMINFO function respectively:
5 Comments
Isabel
on 13 Jan 2016
Walter Roberson
on 13 Jan 2016
Did you draw the annotations in any particular color?
Did you save the annotated images as JPEG, or did you save as PNG or TIFF? (Please don't tell me you saved them as JPEG...)
Isabel
on 29 Jan 2016
Walter Roberson
on 29 Jan 2016
Is there anything else in the image that is the same color?
Isabel
on 8 Feb 2016
Walter Roberson
on 8 Feb 2016
0 votes
text_mask = Blue_channel > threshold1 & Red_channel < threshold2
For some small threshold2 (the black level) and larger threshold1 (the level of the blue)
The blue test finds the blue but also finds white. The red test rejects the white (white is near equal on all three channels)
You can now feed the mask itself to an ocr routine to extract the text.
Categories
Find more on DICOM Format in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!