<br>Bonjour,<br><br>Voilà un petit déjà que j'essaye de convertir une image 16bits monochrome vers une RGB 3*8bits, et j'y arrive lentement, mais surement. Mais voilà, je parcourais les différentes classes de gdcm tout à l'heure et je me suis apperçu qu'il existait une classe appelée pixelreadconvert. Est ce que je pourrais arriver au même résultat par ce biais ? Voici ce que je fais mais ça ne amrche pas trop...<br><br>Merci,<br>    Olivier Stern<br><br>  gdcm::FileHelper *fh = new gdcm::FileHelper( filename );<br>  gdcm::PixelReadConvert *prc = new gdcm::PixelReadConvert();<br>  prc->GrabInformationsFromFile( fh->GetFile() );<br>  prc->ReadAndDecompressPixelData( fh->GetFile()->OpenFile() );<br>  prc->BuildRGBImage();<br>  uint8_t * imageDataRGB = prc->GetRGB();<br>  size_t dataSize = prc->GetRGBSize();<br>  <br>  fh->GetFile()->InsertValEntry( \"8\", 0x0028, 0x0100); // Bits Allocated<br>  fh->GetFile()->InsertValEntry( \"8\", 0x0028, 0x0101); // Bits Stored<br> 
fh->GetFile()->InsertValEntry( \"7\", 0x0028, 0x0102); // High Bit<br>  //fh->GetFile()->InsertValEntry( \"0\", 0x0028, 0x0103); // Pixel Representation<br>  <br>  // Samples Per Pixel  <br>  <br>  fh->GetFile()->InsertValEntry( \"3 \" ,0x0028,0x0002);<br>  fh->GetFile()->InsertValEntry( \"RGB \",0x0028,0x0004 ); // Photometric Interpretation<br>  fh->GetFile()->InsertValEntry( \"1 \",0x0028,0x0006 ); // Planar Configuration<br>   <br>  // TODO  : free existing PixelData first !<br>  <br>  fh->SetImageData(imageDataRGB, dataSize);