+ firstImage->GetDimensions(dim);
+ // brute way to perform an ultra-mini consistency check :
+ // First image is supposed to be the reference image,
+ // any unconsistent image is just discarted...
+ for(int i=0; i<nb; i++)
+ {
+ if ( !CheckConsistency(firstImage, dim, nbComponents, scalarType))
+ consistentNb--;
+ }
+
+ dim[2]=consistentNb;
+ mConcat->SetDimensions(dim);
+ mConcat->SetExtent(0, dim[0]-1, 0, dim[1]-1, 0, dim[2]-1);
+