X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=Example%2FexGrey2RGB.cxx;h=cc3d5e4b4c1f8cfb881f236e0054c9a3543a819b;hb=ac2e8ecc8319069451f1fe5a4413915d56f9cbdc;hp=b096ad50efca3544a4d48104579be9ff9a2895be;hpb=031dab1266be5850ffa788ebe4fdc3fe2b6c2511;p=gdcm.git diff --git a/Example/exGrey2RGB.cxx b/Example/exGrey2RGB.cxx index b096ad50..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/06/15 10:06:36 $ - Version: $Revision: 1.1 $ + 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 @@ -80,8 +80,10 @@ int main(int argc, char *argv[]) return 1; } } - - 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();