From: guigues Date: Fri, 17 Oct 2008 12:17:58 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: v0.2.0~4 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=f24c18d2764f853ef96f55ff53562393ca2b2139;p=creaImageIO.git *** empty log message *** --- diff --git a/src/creaImageIOImageReader.cpp b/src/creaImageIOImageReader.cpp index 970178d..d4eed5a 100644 --- a/src/creaImageIOImageReader.cpp +++ b/src/creaImageIOImageReader.cpp @@ -151,10 +151,11 @@ namespace creaImageIO IRSplitString(ext," ",v); } - + void ReadDicomInfo(const std::string& filename, DicomNode* image) { + // std::cout << "SpecificVtkReader::ReadDicomInfo '"<SetFieldValue("A0004_1500",irclean(f)); // Does not work : // How to get the image info without loading it in vtk ? - /* + mVTKReader->SetFileName(filename.c_str()); - mVTKReader->OpenFile(); + mVTKReader->Update(); //OpenFile(); int ext[6]; mVTKReader->GetDataExtent(ext); // Columns char str[128]; sprintf(str,"%i",ext[1]-ext[0]); + // std::cout << "col="<SetFieldValue("A0028_0011",str); // Rows sprintf(str,"%i",ext[3]-ext[2]); + // std::cout << "row="<SetFieldValue("A0028_0010",str); - */ - + // Planes == frames + sprintf(str,"%i",ext[5]-ext[4]); + // std::cout << "frames="<SetFieldValue("A0028_0008",str); + } private: vtkImageReader2* mVTKReader; @@ -279,6 +285,7 @@ namespace creaImageIO void ReadDicomInfo(const std::string& filename, DicomNode* image) { + // std::cout << "DicomReader::ReadDicomInfo '"<SetLoadMode( GDCM_NAME_SPACE::LD_ALL); file->SetFileName(filename.c_str()); @@ -452,6 +459,7 @@ namespace creaImageIO void ImageReader::ReadDicomInfo(const std::string& filename, DicomNode* image) { + // std::cout << "ImageReader::ReadDicomInfo '"<