Load dicom files with 16 bit

Discussions on GFL SDK, the graphic library for reading and writing graphic files

Moderators: helmut, XnTriq, xnview

josei

Load dicom files with 16 bit

Post by josei »

Hello

I need to read a 16 bit dicom file, I tried GFL_LOAD_ORIGINAL_DEPTH, but it does not seem to work.

It is possible with GFLSDK?

This is the code I use

Code: Select all

	load_option.Flags |= GFL_LOAD_SKIP_ALPHA;
                if(_parl(8))
	         load_option.Flags |= GFL_LOAD_ORIGINAL_DEPTH;
	load_option.Origin = GFL_BOTTOM_LEFT;
	load_option.ColorModel = GFL_BGR;
	load_option.FormatIndex = _parni(7)==NULL ? -1 : _parni(7);
	error = gflLoadBitmap( _parc(1), &TheBitmap, &load_option,NULL);
User avatar
xnview
Author of XnView
Posts: 45868
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Load dicom files with 16 bit

Post by xnview »

josei wrote:Hello

I need to read a 16 bit dicom file, I tried GFL_LOAD_ORIGINAL_DEPTH, but it does not seem to work.

It is possible with GFLSDK?
Currently GFL SDK can't read DICOM 16bits, only TIFF/PSD/PNG/SGI/TDI
Pierre.