Program: gdcm
Module: $RCSfile: exColorToRGB.cxx,v $
Language: C++
- Date: $Date: 2005/07/07 17:31:54 $
- Version: $Revision: 1.3 $
+ Date: $Date: 2005/09/06 11:10:03 $
+ Version: $Revision: 1.7 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
std::cout << argv[1] << std::endl;
gdcm::File *f = new gdcm::File();
- f->SetLoadMode( 0x00000000);
+ f->SetLoadMode( gdcm::LD_ALL);
f->SetFileName( fileName );
bool res = f->Load();
// We need a gdcm::FileHelper, since we want to load the pixels
gdcm::FileHelper *fh = new gdcm::FileHelper(f);
- // (unit8_t DOESN'T mean it's mandatory for the image to be a 8 bits one)
+ // uint8_t DOESN'T mean it's mandatory for the image to be a 8 bits one !
+ // It's just for prototyping.
+ // Feel free to cast it.
uint8_t *imageData = fh->GetImageData();
// ------ without Sequences -------------
- gdcm::FileHelper *copy = new gdcm::FileHelper( output );
+ gdcm::FileHelper *copy = new gdcm::FileHelper( );
+ copy->SetFileName( output );
+ copy->Load();
gdcm::DocEntry *d = f->GetFirstEntry();
while(d)