dicom2 logo
 
Download | Install | Usage (1) (2) | How to | Problems | Limitations | Performances 
TOCHow toLimitations 
Problems
      Too many messages 
Missing tags 
Unable to write... 
Error while reading File Meta Elements 
 
If dicom2 exhibits a really strange behavior, you might consider checking if it is really working right with your implementation. Have a look at the medical image samples page and the Performances section to download some files and compare your results with these expected. 
 
Feedback is really appreciated :) Please, send me an email reporting any bugs or problems: I will do my best to fix them.
Top Too many messages
Unable to load DICOM dictionary
    You might be surprised by the number of messages output by dicom2 while it is doing its work. Don't worry, most of them are harmless... Warnings (prefixed with [W]) do not stop the conversion process, whereas errors (prefixed with [E]) do. 
 
>> [W] [14:13:25] 
   bool SbMedicalFrame::UpdateFrom( const SbDicomDataElementSet&, ... ) 
   missing tag: (0028,0004) Photometric Interpretation... 
>> [E] [14:13:26] 
   bool SbMedicalFrame::UpdateFrom( const SbDicomDataElementSet&, ... ) 
   encapsulated syntax 1.2.840.10008.1.2.4.70 is not supported! 
 
Don't forget that you can hide these annoying warning messages by using the  --warn option !
Unable to load DICOM dictionary Missing tags
Unable to write...
  Some missing tags may be assumed (as they should be there), and therefore introduce nothing but warnings. This kind of warning is usual when reading old ACR/NEMA files. You should use --warn to prevent your screen from being flooded while converting hundreds of these files. 
 
>> [W] [14:13:25] 
   bool SbMedicalFrame::UpdateFrom( const SbDicomDataElementSet&, ... ) 
   missing tag: (0028,0004) Photometric Interpretation. Assuming MONOCHROME2! 
>> [W] [14:13:25] 
   bool SbMedicalFrame::UpdateFrom( const SbDicomDataElementSet&, ... ) 
   missing tag: (0028,0002) Samples per Pixel. Assuming 1! 
 
Some other tags are mandatory for a given conversion task. These missing tags will produce an error, and stop the program. 
 
>> [E] [14:21:50] 
   bool SbMedicalFrame::UpdateFrom( const SbDicomDataElementSet&, ... ) 
   missing image mandatory tags in set! 
>> [E] [14:21:50] 
   bool SbMedicalFrame::UpdateFrom( const SbDicomDataElementSet&, ... ) 
   missing CLUT mandatory tags in set! 
>> [E] [14:21:50] 
   bool SbMedicalFrame::UpdateFrom( const SbDicomDataElementSet&, ... ) 
   missing Windowing mandatory tags in set! 
Missing tags Unable to write...
Error while reading File Meta Elements
  If you encounter that kind of message ("unable to write data..."), check that you are not trying to write the converted files to a protected directory or to any place where you are not allowed to store data (in multi-user systems). You should also check if your hard disk is full, or your quota exhausted :) 
 
If you are using the --to option, you might also check that you specified a fully expanded directory (don't use ~ or $HOME). 
Unable to write... Error while reading File Meta Elements
Bottom
  If you ever read that kind of message, you are probably trying to load a true DICOM file (i.e. with a File Preamble) written according to an old DICOM standard which stated that File Meta Elements stored at the beginning of the file should be saved using the DICOM Implicit VR Little Endian Syntax. This is no more the case: these elements have to be written using the DICOM Explicit VR Little Endian Syntax. Nevertheless, you can force dicom2 to conform to that old behavior by specifying the desired syntax with the --syntax option. 
 
dicom2 mr.d3i 
>> [E] [00:19:47] 
   VR TranslateVR( const char, const char ) 
   unknown VR token  
>> [E] [00:19:47] 
   ULONG SbDicomDataElementValue::ReadButValue( ifbstream& ) 
   explicit VR of value is unknown! (0x8a) 
>> [E] [00:19:47] 
   ifbstream& SbDicomDataElementValue::Read( ifbstream& ) 
   while reading (optional) explicit VR and length of value! (0x8a) 
>> [E] [00:19:47] 
   ifbstream& SbDicomDataElementSet::ReadFiltered( ifbstream&, const ...) 
   while getting value of element (0002,0000)! (0x8a) 
>> [E] [00:19:48] 
   bool SbDicomDataElementSet::Load( const SbFileName&, const ...) 
   while reading File Meta Elements of file mr.d3i! (check syntax) 
>> [E] [00:19:48] 
   int main(const int, const char**) 
   while reading file mr.d3i! 

dicom2 mr.d3i --syntax=il 
OK (il = implicit little endian) 

 
Download | Install | Usage (1) (2) | How to | Problems | Limitations | Performances  TOCHow toLimitations 
 
Medical Imaging / Sébastien Barré / Jan. 1998