X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Example%2FPcpdenseToDicom.cxx;h=b06a457d3df75dc11eb3582f966557b16e4d44c6;hb=371082378cd2c288492401d9f130c4c7561d803a;hp=af177af187ec9310a721297d22c3d0a41f297154;hpb=8fc2d3bff394fba8732199dda6e98fa1f5bfd5d2;p=gdcm.git 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); } }