X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Example%2FexGrey2RGB.cxx;h=cc3d5e4b4c1f8cfb881f236e0054c9a3543a819b;hb=59948165c33389ddf140d05f1b5ae841644c1902;hp=2c151985c570de1f3870a487b861148bb0b006ca;hpb=4d992954520d43c6f2fb555b7cd721574978c23a;p=gdcm.git diff --git a/Example/exGrey2RGB.cxx b/Example/exGrey2RGB.cxx index 2c151985..cc3d5e4b 100644 --- a/Example/exGrey2RGB.cxx +++ b/Example/exGrey2RGB.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: exGrey2RGB.cxx,v $ Language: C++ - Date: $Date: 2005/07/07 17:31:54 $ - Version: $Revision: 1.2 $ + Date: $Date: 2005/07/19 15:19:25 $ + Version: $Revision: 1.3 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -81,7 +81,9 @@ int main(int argc, char *argv[]) } } - gdcm::FileHelper *fh = new gdcm::FileHelper( filename ); + gdcm::FileHelper *fh = new gdcm::FileHelper( ); + fh->SetFileName( filename ); + fh->Load(); size_t dataSize = fh->GetImageDataSize(); uint8_t *imageData = fh->GetImageData();