Re: [Gdcm2] Buffer problem in Qt environment
Cross-platform DICOM implementation
Brought to you by:
malat
|
From: Mark R. <mm...@gm...> - 2009-06-17 14:08:18
|
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. Mark On Wed, Jun 17, 2009 at 6:08 AM, Mathieu Malaterre<mat...@gm...> wrote: > On Wed, Jun 17, 2009 at 2:30 PM, Sylvain ADAM<syl...@ho...> wrote: >> By the way, I've tried accessing your wiki page, but nothing displays for >> now? > > Which page ? > > The main page looks ok for me: > > http://sourceforge.net/apps/mediawiki/gdcm/index.php?title=Main_Page > >> And should I try to post a new bug for this memory problem I evoked >> yesterday? > > I do not believe there is a bug in gdcm::ImageReader, you are doing > something wrong when passing the buffer to QImage. Post the example, > maybe patch ConvertToQImage.cxx so that other people can duplicate the > bug you are seeing. > > HTH > -- > Mathieu > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > Gdcm-developers mailing list > Gdc...@li... > https://lists.sourceforge.net/lists/listinfo/gdcm-developers > |