From jolinda at uoregon.edu Thu Dec 29 12:17:42 2022 From: jolinda at uoregon.edu (Jolinda Smith) Date: Thu, 29 Dec 2022 20:17:42 +0000 Subject: mriconvert: File does not contain image data In-Reply-To: References: <8C77467D58C51A44A747AA39660E13C39A138D@DAGONE.mdc-berlin.net> <8C77467D58C51A44A747AA39660E13C39A139D@DAGONE.mdc-berlin.net> <03de01d52786$d14ec900$73ec5b00$@uoregon.edu> Message-ID: Hi Roman! Hope you are well. This means that mcverter is reading it as DICOM, but it can't find the "photometric interpretation" tag (0028, 0004). For MR images this is usually "MONOCHROME2". If you have dcmtk installed, you can look for this tag by running dcmdump +P PhotometricInterpretation [filename]. If it's not found, mcverter assumes this isn't an image file. I've mostly switched to dcm2niix myself since I haven't had time to work on mriconvert and it's gotten behind. I'm currently working on a python-based front end for dcm2niix that converts to bids format, if you are interested. If you really want to use mcverter and not dcm2niix, the first thing I can think of to try is to rewrite the dicoms using something like dcmconv from dcmtk: https://support.dcmtk.org/docs/dcmconv.html. This should correct any missing required elements in the dicom files. Jolinda From: Roman Fleysher Sent: Thursday, December 29, 2022 11:55 AM To: 'MRIConvert user's list' ; Jolinda Smith Subject: File does not contain image data Dear Jolinda, Dear All, I have not had any issues with mcverter in a long time. I am installing a new system and new versions of software and some of the old DICOM files do not convert. New DICOMs are fine. I get error message (when using -v option for verbose output): Not added File does not contain image data I use mcverter version 2.1.0 build 434 The DICOM files are not that old, only few years, so this should not be any major change in format. What could this error mean and how to get mcverter to convert these DICOMs to NIFTI? Thank you, and wishing you a Happy New Year, Roman -------------- next part -------------- An HTML attachment was scrubbed... URL: From jolinda at uoregon.edu Thu Dec 29 13:19:49 2022 From: jolinda at uoregon.edu (Jolinda Smith) Date: Thu, 29 Dec 2022 21:19:49 +0000 Subject: mriconvert: File does not contain image data In-Reply-To: References: <8C77467D58C51A44A747AA39660E13C39A138D@DAGONE.mdc-berlin.net> <8C77467D58C51A44A747AA39660E13C39A139D@DAGONE.mdc-berlin.net> <03de01d52786$d14ec900$73ec5b00$@uoregon.edu> Message-ID: At the point of the error it's just checking to see if the element is there. It might use it later to distinguish monochrome from RGB images but I'd have to dig through the code to be sure. I'm not sure if that would be needed for conversion, it might just be used for the image viewer in the gui. For images that are bright against a dark background (such as MR), MONOCHROME2 would be the correct value. I have not used it, but gdcmtar (https://gdcm.sourceforge.net/html/gdcmtar.html) is supposed to convert to and from enhanced multiframe DICOM format. Jolinda From: Roman Fleysher Sent: Thursday, December 29, 2022 12:35 PM To: Jolinda Smith ; 'MRIConvert user's list' Subject: Re: File does not contain image data Thank you, Jolinda, for a quick reply ! In my experience, mcverter has always been superior to dcm2niix, and thus I try to stay with it. Yes, indeed, that tag is missing from the DICOM. I will try to insert it using dcmodify. Does mcveter apply different conversion algorithm depending on value of PhotometricInterpretation? Or it simply uses it to differentiate images from non-images? (I thought there was another way to tell if DICOM has image, maybe SOPClassUID; I am not a DICOM expert.) Since you mentioned a DICOM converter, do you know of a tool to assemble standard DICOM into an enhanced DICOM and disassemble enhanced into a standard? Roman ________________________________ From: Jolinda Smith > Sent: Thursday, December 29, 2022 3:17 PM To: Roman Fleysher >; 'MRIConvert user's list' > Subject: RE: File does not contain image data CAUTION: This email comes from an external source; the attachments and/or links may compromise our secure environment. Do not open or click on suspicious emails. Please click on the "Phish Alert" button on the top right of the Outlook dashboard to report any suspicious emails. Hi Roman! Hope you are well. This means that mcverter is reading it as DICOM, but it can't find the "photometric interpretation" tag (0028, 0004). For MR images this is usually "MONOCHROME2". If you have dcmtk installed, you can look for this tag by running dcmdump +P PhotometricInterpretation [filename]. If it's not found, mcverter assumes this isn't an image file. I've mostly switched to dcm2niix myself since I haven't had time to work on mriconvert and it's gotten behind. I'm currently working on a python-based front end for dcm2niix that converts to bids format, if you are interested. If you really want to use mcverter and not dcm2niix, the first thing I can think of to try is to rewrite the dicoms using something like dcmconv from dcmtk: https://support.dcmtk.org/docs/dcmconv.html. This should correct any missing required elements in the dicom files. Jolinda From: Roman Fleysher > Sent: Thursday, December 29, 2022 11:55 AM To: 'MRIConvert user's list' >; Jolinda Smith > Subject: File does not contain image data Dear Jolinda, Dear All, I have not had any issues with mcverter in a long time. I am installing a new system and new versions of software and some of the old DICOM files do not convert. New DICOMs are fine. I get error message (when using -v option for verbose output): Not added File does not contain image data I use mcverter version 2.1.0 build 434 The DICOM files are not that old, only few years, so this should not be any major change in format. What could this error mean and how to get mcverter to convert these DICOMs to NIFTI? Thank you, and wishing you a Happy New Year, Roman -------------- next part -------------- An HTML attachment was scrubbed... URL: