[Dcmlib] accessing individual pixel values from image

Jean-Pierre Roux jpr at creatis.insa-lyon.fr
Wed Sep 5 18:32:59 CEST 2007


Ashish Singh wrote:
> Hi,

Hi, Ashish.

I saw on your previous posts that you use ITK, don't you?
You'd  better to use ITK methods to access the pixels.

gdcm::FileHelper::GetRGBData(), or gdcm::FileHelper::GetRawData() only 
return a 1D array of pixels.

HTH

Jean-Pierre Roux

>
> I am new to GDCM and was wondering if anyone can guide me on accessing 
> individual pixel values ( RGB values for an RGB image) for an image. 
> What classes and functions do I need to use for that? Are there any 
> examples which show their usage?
> Please help.
>
> Thanks,
> Ashish
> ------------------------------------------------------------------------
>
> _______________________________________________
> Dcmlib mailing list
> Dcmlib at creatis.insa-lyon.fr
> http://www.creatis.insa-lyon.fr/mailman/listinfo/dcmlib



More information about the Dcmlib mailing list