Re: [Gdcm2] Buffer problem in Qt environment
Cross-platform DICOM implementation
Brought to you by:
malat
|
From: Sylvain A. <syl...@ho...> - 2009-06-17 14:28:12
|
Yep, that's exactly why I've chosen to use the RGB 24 bits format in 8-8-8, which displays the image without losing too much information in 8-bits. As I didn't know before and I was passing the 16-bits buffer to a RGB16 format, this is why I had a weird blue-green image. By the way, Mathieu, have you acknowledged my bug description? > Date: Wed, 17 Jun 2009 16:17:59 +0200 > Subject: Re: [Gdcm2] Buffer problem in Qt environment > From: mat...@gm... > To: mm...@gm... > CC: syl...@ho...; gdc...@li... > > 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 _________________________________________________________________ Vous voulez savoir ce que vous pouvez faire avec le nouveau Windows Live ? Lancez-vous ! http://www.microsoft.com/windows/windowslive/default.aspx |