Program: gdcm
Module: $RCSfile: vtkGdcm4DSplitter.cxx,v $
Language: C++
- Date: $Date: 2011/04/13 13:30:58 $
- Version: $Revision: 1.10 $
+ Date: $Date: 2011/04/15 15:14:40 $
+ 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
void setSortOnUserFunction (FoncComp f);
- File name
void setSortOnFileName()
-
+
+- Choose 'flip' option
+----------------------
+VTK reader 'flop upside down' the images to display them correctly ?!?
+When a 'math guy' gets the image, the first thing he does is flipping it again.
+Avoid loosing CPU time using :
+ bool SetFlipY(bool); // Wrong = no flip
+
. Execute :
-----------
bool Go();
++i)
{
vtkGdcmReader *reader = vtkGdcmReader::New(); /// \TODO FIXME : unable to delete!
-
+
+ reader->SetFlipY(FlipY);
+ // better user SetFileLowerLeft()
+ /// \TODO : modify vtkGdcmReader !
if (verbose)
std::cout << " --- xCoherentName = [" << (*i).first << "]" << std::endl;
Program: gdcm
Module: $RCSfile: vtkGdcm4DSplitter.h,v $
Language: C++
- Date: $Date: 2011/04/13 13:30:58 $
- Version: $Revision: 1.9 $
+ Date: $Date: 2011/04/15 15:14:40 $
+ Version: $Revision: 1.10 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
bool setVectFileName(std::vector<std::string> &vectFileName);
bool setVectGdcmFile(std::vector<GDCM_NAME_SPACE::File *> *vectGdcmFile);
+
+ bool SetFlipY(bool f) { FlipY = f;}
// Split
// =====
GDCM_NAME_SPACE::XCoherentFileSetmap xcm;
//std::vector<std::vector<GDCM_NAME_SPACE::File *> > VectGdcmFileLists;
std::vector<GDCM_NAME_SPACE::FileList *> VectGdcmFileLists;
+ bool FlipY;
};
//} // end namespace gdcm