Re: [Gdcm2] Buffer problem in Qt environment
Cross-platform DICOM implementation
Brought to you by:
malat
|
From: Mathieu M. <mat...@gm...> - 2009-06-17 14:18:04
|
On Wed, Jun 17, 2009 at 4:08 PM, Mark Roden<mm...@gm...> wrote: > Hi all, > > Just as a side note, a 16bit rgb image is 5 bits red, 6 bits green, 5 > bits blue-- QtImage does not support 16 bit monochrome. If it did, > that would be 48bit rgb, and you'd just make each channel the > monochrome information. Another gotcha along the same lines has to do > with Microsoft's bitmap classes; they _say_ that they support 16 bit > monochrome, but if you dig into the documentation, there's a note that > says something along the lines of "Who needs this? I don't know, so > we won't implement it." The fix there is to go to 48 bit bitmaps, > which work just fine. Thanks ! I just updated Sylvain's sample and realize that QImage also has the same drawback, you cannot simply pass a 16bit buffer :( $ svn ci -m"style" Sending Cxx/CMakeLists.txt Sending Cxx/ConvertToQImage.cxx Transmitting file data .. Committed revision 5838. -- Mathieu |