[ome-users] ImageProcessorReader.getSeriesMetadata() for extracting DICOM tags
Mohammad Samarah
isamarah at mac.com
Fri Apr 4 06:48:30 BST 2014
We are using ImageProcessorReader to extract DICOM tags from an RVG image.
All seems to be well, however it does not seem to return repeating tags
particularly tag id 0008,0104. Are there specific options needed to extract
repeated tags? And are there known limitations with the Imetadata class? I
have attached the DICOM tags table and Java code in question below.
Thanks for your help,
M. Samarah
msamarah at alumni.fit.edu
Tag ID VR VM Len Description Value
(0008,2228) SQ 0 0 Primary Anatomic Structure
Sequence
(FFFE,E000)
(0008,0100)
(0008,0102)
(0008,0104) LO 1 34 Code Meaning Maxillary
right third molar tooth
(FFFE,E000)
(0008,0100)
(0008,0102)
(0008,0104) LO 1 34 Code Meaning Maxillary
right second molar tooth
(FFFE,E000)
(0008,0100)
(0008,0102)
(0008,0104) LO 1 34 Code Meaning Maxillary
right first molar tooth
ImageProcessorReader r = new ImageProcessorReader(new
ChannelSeparator(LociPrefs.makeImageReader()));
try
{
ServiceFactory factory = new ServiceFactory();
OMEXMLService service = factory.getInstance(OMEXMLService.class);
IMetadata meta = service.createOMEXMLMetadata();
log_message("INFO: Examining file " + imagePath);
r.setMetadataStore(meta);
r.setGroupFiles(false);
r.setId(imagePath);
metadata = r.getSeriesMetadata();
Set<String> keys = metadata.keySet();
for(String key: keys)
{
System.out.println("Value of "+key+" is: "+metadata.get(key));
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openmicroscopy.org.uk/pipermail/ome-users/attachments/20140404/19f904ea/attachment.html>
More information about the ome-users
mailing list