From fb1db702e2e94adb9c04387604dbe635726db898 Mon Sep 17 00:00:00 2001 From: jpr Date: Mon, 12 Sep 2011 23:27:41 +0000 Subject: [PATCH] As requested, one serie per image --- Example/PcpdenseToDicom.cxx | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/Example/PcpdenseToDicom.cxx b/Example/PcpdenseToDicom.cxx index 03612fdb..29406aa1 100644 --- a/Example/PcpdenseToDicom.cxx +++ b/Example/PcpdenseToDicom.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: PcpdenseToDicom.cxx,v $ Language: C++ - Date: $Date: 2011/09/12 11:11:30 $ - Version: $Revision: 1.10 $ + Date: $Date: 2011/09/12 23:27:41 $ + Version: $Revision: 1.11 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -59,7 +59,7 @@ int main(int argc, char *argv[]) " (e.g.. : meas_MID380_DENSE_stacked_slices_aif_FID81637)", " numberOfSlices = (default : 3) ", " X2 : multiply x 2 image size ", - " multFact = (default : 1000) multiply pixel value by... ", + " multFact = (default : 1000) multiply pixel value by ... ", " m :create multiframe files instead of image stacks ", " [patientname = Patient's name] ", " [verbose] [debug] ", @@ -287,6 +287,7 @@ void WholeBazar(unsigned short int *image, int NX, int NY, int numberOfSlices, s std::string strSerieUID = GDCM_NAME_SPACE::Util::CreateUniqueUID(); std::string deb(rootfilename); std::ostringstream Ecc; + std::ostringstream trueSerieDescr; std::string dcmImageName; int mult; @@ -303,13 +304,18 @@ void WholeBazar(unsigned short int *image, int NX, int NY, int numberOfSlices, s image2 = new unsigned short int[NX*NY*mult]; } - if (!multiframe) { + if (!multiframe) { for (int i=0; i in MakeDicomImage : dcmImageName = [" << dcmImageName << "] NX= " << X << " NY= " << Y << std::endl; +//std::cout << "========================> in MakeDicomImage : dcmImageName = [" << dcmImageName << "] NX= " << X << " NY= " << Y << std::endl; // GDCM_NAME_SPACE::Debug::DebugOn(); std::ostringstream str; @@ -471,7 +477,7 @@ std::cout << "========================> in MakeDicomImage : dcmImageName = [" << // delete img; file->Delete(); fileH->Delete(); - std::cout << "========================> out of MakeDicomImage : " << std::endl; + //std::cout << "========================> out of MakeDicomImage : " << std::endl; } -- 2.45.0