On 07/02/12 04:32, David Clunie wrote:
> Hi Brendan
2>
> Email me a sample if you like, and I will see if one of my older
> utilities can determine whether it is compressed and if so
> decompress it (or you can try gentodc with the -dat option in
> my dicom3tools); I had implemented most if not all of the Genesis
> varieties documented and encountered.
---8< snip --------------
Hi David,
gentodc has functioned perfectly converting those genesis files pulled
from DAT.
Now interestingly, the OTHER genesis files I already have do not convert
with this tool. They are all 145408 bytes in length, have the same
header format as the DAT ones (that is, with the prepended
study/series/etc and invalid pointers in the next), and yet gentodc does
not convert them.
I can open them with a viewer that supports gen5x, so they work. But if
I try use gentodc without the -dat, I get a segmentation fault. This
looks right because its trying to use the invalid pointers. Also the
headers of these files do not indicate they are ximg.
If I then run it with the parameter -dat, it converts the file to a dcm,
but the dcm is just mush in the viewer. Its not a clean convert. Perhaps
this is a different type of genesis format?
Looking closer at the header, it seems to have the same compression
flags and the headers looks pretty much the same as the dat version of
the files, and yet without any of the file size variance, which leads me
to think the image data is not compressed (or packed) at all.
An thoughts?
Brendan Grieve