c++ - Draw dicom raw data in qt -


i'm trying develop tool visualize dicom images i'm using itk library have problem drawing data i'm using gdcm library provided itk library third party lib.

i'm reading image correctly retrieved tags ... when retrieve pixels data using

unsigned short buffer* = imagefilereader<image<unsigned short,2>>->getoutput()->getbufferpointer(); 

and put in qpixmap or qimage tried both,qpixelmap when loaddata false return value , using qimage, app crashes !

any ? thank

look @ example, http://gdcm.sourceforge.net/html/converttoqimage_8cxx-example.html

just use gdcm read image , convert qimage.

keep in mind dicom images not image format qt can draw, need conversion step.


Comments