From: jpr Date: Thu, 26 Aug 2010 12:46:12 +0000 (+0000) Subject: add seriedescription to created images X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?p=gdcm.git;a=commitdiff_plain;h=371082378cd2c288492401d9f130c4c7561d803a add seriedescription to created images --- diff --git a/Example/PcpdenseToDicom.cxx b/Example/PcpdenseToDicom.cxx index af177af1..b06a457d 100644 --- a/Example/PcpdenseToDicom.cxx +++ b/Example/PcpdenseToDicom.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: PcpdenseToDicom.cxx,v $ Language: C++ - Date: $Date: 2008/09/19 09:33:16 $ - Version: $Revision: 1.4 $ + Date: $Date: 2010/08/26 12:46:12 $ + Version: $Revision: 1.5 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -154,7 +154,9 @@ int main(int argc, char *argv[]) // === Ecc === strSerieUID = GDCM_NAME_SPACE::Util::CreateUniqueUID(); - + + serieDescr = "Ecc"; + if (!multiframe) { for (int i=0; i> pixelValue; - image[i*NX+j] = (unsigned short int)(pixelValue * 1000.); + image[i*NX+j] = (unsigned short int)(pixelValue * 1000.); // Why do we multiply by 1000? // JPR } } @@ -404,7 +410,7 @@ XY Dimensions 47 50 for( i=0;i> pixelValue; - pixelValue*=1000.; + pixelValue*=1000.; // Why do we multiply by 1000? // JPR image[i*4*NX + j*2] = image[i*4*NX + j*2+1] = image[(i*4+2)*NX + j*2] = image[(i*4+2)*NX + j*2+1] = (unsigned short int)(pixelValue); } }