I'm used to convert single-frame DICOM files to JPEG using dcmj2pnm with the +Wl (--use-voi-lut) option in order to apply LUT transformation, and this works very well so far.
Here I'm trying to use the same command by adding the +Fa option in order to convert multi-frame DICOM files to JPEG files, and splitting them by frame automatically. It seems to also work, but unfortunately, when I try to add the +Wl option, dcmj2pnm replies with the following error :
Code: Select all
F: cannot select VOI LUT 1, only 0 LUT(s) in file
So, does anyone here can confirm to me that dcmj2pnm does not implement this feature ?
Otherwise, is there a way with DCMTK to split multi-frame DICOM file into single-frame files ? This way I could convert each file to JPEG separately, using the dcmj2pnm command as I'm used to.
Thank you for your help