ImspectorPro MSR files lack proper public documentation and appear to have a header with "CProperty" or "CDataStack" in the first 30 bytes, followed by metadata. Given the random structure of the header and having metadata at offset 128, some files are interpreted as DICOM files and ImageJ tries to open them as such. The majority of our files start with 0x080000.
I added a small check for the file extension. If the file extension is MSR, getFileType will return unknown and Bio-Formats can handle the files correctly. I didn't add a check for the magic strings "CProperty" and "CDataStack" because there might be files that have a different string that is unknown so far and Bio-Formats checks for the strings. There shouldn't be any DICOM files that actually have .MSR file extension.
ImspectorPro MSR files lack proper public documentation and appear to have a header with "CProperty" or "CDataStack" in the first 30 bytes, followed by metadata. Given the random structure of the header and having metadata at offset 128, some files are interpreted as DICOM files and ImageJ tries to open them as such. The majority of our files start with 0x080000.
I added a small check for the file extension. If the file extension is MSR, getFileType will return unknown and Bio-Formats can handle the files correctly. I didn't add a check for the magic strings "CProperty" and "CDataStack" because there might be files that have a different string that is unknown so far and Bio-Formats checks for the strings. There shouldn't be any DICOM files that actually have .MSR file extension.