]> Creatis software - creaImageIO.git/commitdiff
#3320 ReadImages box
authorEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Mon, 7 Jun 2021 17:23:30 +0000 (19:23 +0200)
committerEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Mon, 7 Jun 2021 17:23:30 +0000 (19:23 +0200)
src/creaImageIOSimpleView.cpp

index 0219927b6bdbb4a654a222abfa66aea9dda2c5a7..98321c132c24fe5f53098a125f85085640d36ec1 100644 (file)
@@ -38,13 +38,9 @@ namespace creaImageIO
                                                                                std::vector<std::map <std::string , std::string> > &i_imgAttr,  // out information attributes names-values
                                                                                std::vector<vtkImageData *> &i_img)                                                     // out information vtkImageData
        {
-
                  //Mosaic Attribute for Simens         
                        i_attr.push_back("D0019_100a");  // Number of images in mosaic (Simens)
                        i_attr.push_back("D0018_0088");  // Spacing Between Slices
-               
-
-
                        creaImageIOUnMosaicVtkImageData Mosaic;
                        vtkImageData* tmpImg1;
                        vtkImageData* tmpImg2;
@@ -100,7 +96,6 @@ namespace creaImageIO
                                } // if
                        } // for
                        delete mReader;
-
                        return bfinal;  
        }
 
@@ -157,7 +152,8 @@ namespace creaImageIO
 //             dlg.ShowModal(); 
 //             bbSetOutputDicomInfo( dlg.getDicomInfoImagesSelected() );
 
-               if (lstImages.size()!=0){ 
+               if (lstImages.size()!=0)
+               { 
 //               bbSetOutputFileName( std::string( dlg.getInfoImage().mb_str() ) );
                  if(lstImages.size() ==1)
                  {
@@ -238,12 +234,12 @@ namespace creaImageIO
                                        result = first;
                                } // dim
                        } // if getImagesSelected size
+                       result->Modified();
                } else { 
                result = NULL;  
                } // getImagesSelected().size()!=0
-                       result->Modified();
                return result;
        }
        
        
-}
+} // NAMESPACE