+/**
+ * \brief Elementary coherence checking of the files with the same Serie UID
+ * Only sizes and pixel type are checked right now ...
+ */
+bool SerieHelper::IsCoherent(FileList *coherentFileList)
+{
+ if(coherentFileList->size() == 1)
+ return true;
+
+ FileList::const_iterator it = coherentFileList->begin();
+
+ int nX = (*it)->GetXSize();
+ int nY = (*it)->GetYSize();
+ int pixelSize = (*it)->GetPixelSize();
+
+ it ++;
+ for ( ;
+ it != coherentFileList->end();
+ ++it)
+ {
+ if ( (*it)->GetXSize() != nX )
+ return false;
+ if ( (*it)->GetYSize() != nY )
+ return false;
+ if ( (*it)->GetPixelSize() != pixelSize )
+ return false;
+ // probabely more is to be checked (?)
+ }
+ return true;
+}