]> Creatis software - creaImageIO.git/commitdiff
Merge remote-tracking branch 'origin/changestoITK3and4' into vtk7itk4wx3
authorEduardo DAVILA <davila@localhost.localdomain>
Wed, 4 Oct 2017 09:45:40 +0000 (11:45 +0200)
committerEduardo DAVILA <davila@localhost.localdomain>
Wed, 4 Oct 2017 09:45:40 +0000 (11:45 +0200)
appli/TestWxGimmickReaderDialog/CMakeLists.txt
bbtk/src/bbcreaImageIOGetDicomAttributesFromMaps.h
bbtk/src/bbcreaImageIOItkImagesChooserDialogBox.cxx
bbtk/src/bbcreaImageIOItkImagesChooserDialogBox.h
src/creaImageIOWxAnySimpleDlg.cpp
src/creaImageIOWxAnySimpleDlg.h
src/creaImageIOWxGimmickReaderDialog.cpp

index fa7307b94e80e513e14f72e70f18340511081bbb..255ab8f39eec323a0467825df1ef4574dc639bd0 100644 (file)
@@ -30,6 +30,6 @@ ELSE(WIN32)
   ADD_EXECUTABLE(creaImageIOApp MACOSX_BUNDLE main)
 ENDIF(WIN32)
 
-TARGET_LINK_LIBRARIES(         creaImageIOApp creaImageIO  )
+TARGET_LINK_LIBRARIES(         creaImageIOApp creaImageIO ${ITK_LIBRARIES} )
 
 INSTALL_TARGETS(/bin/ creaImageIOApp )
index 3b98bfd948d83aeb2d7f43046ccf9ce5adce64ae..d099ff2c1e1c91c259b0fdfaca4185c413d7873d 100644 (file)
@@ -32,11 +32,11 @@ class bbcreaImageIO_EXPORT GetDicomAttributesFromMaps
 
 BBTK_BEGIN_DESCRIBE_BLACK_BOX(GetDicomAttributesFromMaps,bbtk::AtomicBlackBox);
 BBTK_NAME("GetDicomAttributesFromMaps");
-BBTK_AUTHOR("Info-Dev, Eduardo DAVIL");
+BBTK_AUTHOR("Info-Dev, Eduardo DAVILA");
 BBTK_DESCRIPTION("eduardo.davila[at]creatis.insa-lyon.fr -");
 BBTK_CATEGORY("empty");
   BBTK_INPUT(GetDicomAttributesFromMaps,In,"Vector of maps with DICOM attributes",std::vector< mapString >,"");
-  BBTK_INPUT(GetDicomAttributesFromMaps,KeyDicom,"Key DICOM",std::string ,"");
+  BBTK_INPUT(GetDicomAttributesFromMaps,KeyDicom,"Key DICOM ex: D0028_0030 ",std::string ,"");
   BBTK_OUTPUT(GetDicomAttributesFromMaps,Out,"Vector of the attribute asked.",std::vector <std::string>,"");
 BBTK_END_DESCRIBE_BLACK_BOX(GetDicomAttributesFromMaps);
 //===== 
index b3b8552023d5bb8675eeb0fff46694bfb0ab26a4..e0c2a1ed29402d0924a5aa4bde2a34aaa86c874b 100644 (file)
@@ -1,28 +1,28 @@
 /*
-       # ---------------------------------------------------------------------
-       #
-       # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image 
-       #                        pour la Santé)
-       # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
-       # Previous Authors : Laurent Guigues, Jean-Pierre Roux
-       # CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil
-       #
-       #  This software is governed by the CeCILL-B license under French law and 
-       #  abiding by the rules of distribution of free software. You can  use, 
-       #  modify and/ or redistribute the software under the terms of the CeCILL-B 
-       #  license as circulated by CEA, CNRS and INRIA at the following URL 
-       #  http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html 
-       #  or in the file LICENSE.txt.
-       #
-       #  As a counterpart to the access to the source code and  rights to copy,
-       #  modify and redistribute granted by the license, users are provided only
-       #  with a limited warranty  and the software's author,  the holder of the
-       #  economic rights,  and the successive licensors  have only  limited
-       #  liability. 
-       #
-       #  The fact that you are presently reading this means that you have had
-       #  knowledge of the CeCILL-B license and that you accept its terms.
-       # ------------------------------------------------------------------------
+  # ---------------------------------------------------------------------
+  #
+  # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image 
+  #                        pour la Santé)
+  # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
+  # Previous Authors : Laurent Guigues, Jean-Pierre Roux
+  # CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil
+  #
+  #  This software is governed by the CeCILL-B license under French law and 
+  #  abiding by the rules of distribution of free software. You can  use, 
+  #  modify and/ or redistribute the software under the terms of the CeCILL-B 
+  #  license as circulated by CEA, CNRS and INRIA at the following URL 
+  #  http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html 
+  #  or in the file LICENSE.txt.
+  #
+  #  As a counterpart to the access to the source code and  rights to copy,
+  #  modify and redistribute granted by the license, users are provided only
+  #  with a limited warranty  and the software's author,  the holder of the
+  #  economic rights,  and the successive licensors  have only  limited
+  #  liability. 
+  #
+  #  The fact that you are presently reading this means that you have had
+  #  knowledge of the CeCILL-B license and that you accept its terms.
+  # ------------------------------------------------------------------------
 */
 //===== 
 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
 #include "bbcreaImageIOItkImagesChooserDialogBox.h"
 #include "bbcreaImageIOPackage.h"
 
+#include "itkImage.h"
+#include "itkImportImageFilter.h"
+
+/*
+// -------------------------------------------------------------------------
+// LFV: avoid itk::Concept check on 4d or superior images
+#define BBCREAIMAGEIO_ChooserDlg_Template( t, ty, di )            \
+  if( t == typeid( itk::Image< ty, di >* ) )                       \
+  {                                                               \
+    this->Export< itk::Image< ty, di > >( );                      \
+    this->ExportVTK< itk::Image< ty, di > >( );                   \
+  }
+*/
+
+// -------------------------------------------------------------------------
+// LFV: avoid itk::Concept check on 4d or superior images
+#define BBCREAIMAGEIO_ChooserDlg_Template( t, ty, di )            \
+  if( t == typeid( itk::Image< ty, di >* ) )                      \
+  {                                                               \
+    this->Export< ty , di  >( );                      \
+    this->ExportVTK< itk::Image< ty, di > >( );                   \
+  }
+
+
+// -------------------------------------------------------------------------
+
 namespace bbcreaImageIO
 {
 
@@ -46,47 +72,115 @@ void ItkImagesChooserDialogBox::Process()
     dlg->ShowModal(); 
 
     bbtk::TypeInfo typ = bbitk::GetITKImagePtrTypeInfoFromPixelTypeInfoAndDimension(*dlg->getTypes().front(), dlg->getDims().front());
-    BBTK_TEMPLATE_ITK_IMAGE_SWITCH(typ, Export);
-    BBTK_TEMPLATE_ITK_IMAGE_SWITCH(typ, ExportVTK);
+
+    BBCREAIMAGEIO_ChooserDlg_Template( typ, char, 1 )
+    else BBCREAIMAGEIO_ChooserDlg_Template( typ, short, 1 )
+    else BBCREAIMAGEIO_ChooserDlg_Template( typ, int, 1 )
+    else BBCREAIMAGEIO_ChooserDlg_Template( typ, long, 1 )
+    else BBCREAIMAGEIO_ChooserDlg_Template( typ, float, 1 )
+    else BBCREAIMAGEIO_ChooserDlg_Template( typ, double, 1 )
+    else BBCREAIMAGEIO_ChooserDlg_Template( typ, unsigned char, 1 )
+    else BBCREAIMAGEIO_ChooserDlg_Template( typ, unsigned short, 1 )
+    else BBCREAIMAGEIO_ChooserDlg_Template( typ, unsigned int, 1 )
+    else BBCREAIMAGEIO_ChooserDlg_Template( typ, unsigned long, 1 )
+    else BBCREAIMAGEIO_ChooserDlg_Template( typ, char, 2 )
+    else BBCREAIMAGEIO_ChooserDlg_Template( typ, short, 2 )
+    else BBCREAIMAGEIO_ChooserDlg_Template( typ, int, 2 )
+    else BBCREAIMAGEIO_ChooserDlg_Template( typ, long, 2 )
+    else BBCREAIMAGEIO_ChooserDlg_Template( typ, float, 2 )
+    else BBCREAIMAGEIO_ChooserDlg_Template( typ, double, 2 )
+    else BBCREAIMAGEIO_ChooserDlg_Template( typ, unsigned char, 2 )
+    else BBCREAIMAGEIO_ChooserDlg_Template( typ, unsigned short, 2 )
+    else BBCREAIMAGEIO_ChooserDlg_Template( typ, unsigned int, 2 )
+    else BBCREAIMAGEIO_ChooserDlg_Template( typ, unsigned long, 2 )
+    else BBCREAIMAGEIO_ChooserDlg_Template( typ, char, 3 )
+    else BBCREAIMAGEIO_ChooserDlg_Template( typ, short, 3 )
+    else BBCREAIMAGEIO_ChooserDlg_Template( typ, int, 3 )
+    else BBCREAIMAGEIO_ChooserDlg_Template( typ, long, 3 )
+    else BBCREAIMAGEIO_ChooserDlg_Template( typ, float, 3 )
+    else BBCREAIMAGEIO_ChooserDlg_Template( typ, double, 3 )
+    else BBCREAIMAGEIO_ChooserDlg_Template( typ, unsigned char, 3 )
+    else BBCREAIMAGEIO_ChooserDlg_Template( typ, unsigned short, 3 )
+    else BBCREAIMAGEIO_ChooserDlg_Template( typ, unsigned int, 3 )
+    else BBCREAIMAGEIO_ChooserDlg_Template( typ, unsigned long, 3 );
+
+
+    /* Deprecated
+       BBTK_TEMPLATE_ITK_IMAGE_SWITCH(typ, Export);
+       BBTK_TEMPLATE_ITK_IMAGE_SWITCH(typ, ExportVTK);
+    */
 
     delete dlg;
 }
 
-template <class TImage>
+
+//template <class TImage>
+template <typename  ty, size_t di>
 void ItkImagesChooserDialogBox::Export()
 {
-   if (dlg->getImagesSelected().size() == 1)
-   { 
+       typedef itk::Image<ty,di> TImage;
+       if (dlg->getImagesSelected().size() == 1)
+       { 
                bbSetOutputOut( dlg->getTemplatedImagesSelected<TImage>().front().GetPointer() ); 
-   } 
-   else if (dlg->getImagesSelected().size() > 1)
-   { 
-      OutputImagesITKType outVect;
-
-      typename  std::vector<typename TImage::Pointer> tempImgs= dlg->getTemplatedImagesSelected<TImage>();
-      typename std::vector<typename TImage::Pointer>::iterator it = tempImgs.begin();
-      for(;it != tempImgs.end(); ++it)
-      {
-         outVect.push_back( (*it).GetPointer() );
-      }
-      bbSetOutputOutIImages( outVect); 
-   } 
-   else
-   {
+       } else if (dlg->getImagesSelected().size() > 1){ 
+               OutputImagesITKType outVect;
+               typename  std::vector<typename TImage::Pointer> tempImgs= dlg->getTemplatedImagesSelected<TImage>();
+               typename std::vector<typename TImage::Pointer>::iterator it = tempImgs.begin();
+               for(;it != tempImgs.end(); ++it)
+               {
+                       outVect.push_back( (*it).GetPointer() );
+               } // for
+               bbSetOutputOutIImages( outVect); 
+
+               typedef  ty RGBPixelType;
+               typedef itk::ImportImageFilter< ty , di > ImportFilterType;
+               typename ImportFilterType::Pointer importFilter = ImportFilterType::New();
+
+               typename TImage::SizeType imsize;
+               imsize[0] = tempImgs[0].GetPointer()->GetLargestPossibleRegion().GetSize()[0];
+               imsize[1] = tempImgs[0].GetPointer()->GetLargestPossibleRegion().GetSize()[1];
+               imsize[2] = tempImgs.size();
+
+               typename ImportFilterType::IndexType start;
+               start.Fill( 0 );
+               typename ImportFilterType::RegionType region;
+               region.SetIndex( start );
+               region.SetSize( imsize );
+               importFilter->SetRegion( region );
+
+               const itk::SpacePrecisionType origin[ 3 ] = { 0.0, 0.0, 0.0 };
+               importFilter->SetOrigin( origin );
+
+               const itk::SpacePrecisionType spacing[ 3 ] = { 1.0, 1.0, 1.0 };
+               importFilter->SetSpacing( spacing );
+               const unsigned long int numberOfPixels2D                = imsize[0]*imsize[1];
+               const unsigned long int numberOfPixels2DInBytes = imsize[0]*imsize[1]*sizeof(ty);
+               const unsigned long int numberOfPixels3D                = imsize[0]*imsize[1]*imsize[2]*sizeof(ty);
+
+               RGBPixelType * localBuffer              = new RGBPixelType[ numberOfPixels3D ];
+               RGBPixelType * tmpLocalBuffer   = localBuffer;
+
+               it = tempImgs.begin();
+               for(;it != tempImgs.end(); ++it)
+               {               
+                       memcpy(tmpLocalBuffer, (*it).GetPointer()->GetBufferPointer(), numberOfPixels2DInBytes);
+                       tmpLocalBuffer = tmpLocalBuffer + numberOfPixels2D;
+               } // for
+
+               const bool importImageFilterWillOwnTheBuffer = true;
+               importFilter->SetImportPointer( localBuffer , numberOfPixels3D , importImageFilterWillOwnTheBuffer );
+               importFilter->Update();
+               importFilter->Register();
+           bbSetOutputOut( importFilter->GetOutput() ); 
+
+   } else {
       // warning: passing NULL to non-pointer 
       //bbSetOutputOut( NULL);
       bbSetOutputOut(0); // JPR
    }
-        // FCY To test the Output
-         //typedef itk::Image <short, 3> ImageType;
-        //typedef itk::ImageFileReader< ImageType > itkReaderType;
-     //  typename itkReaderType::Pointer reader = itkReaderType::New();
-     //
-     //  reader->SetFileName("d:\test.hdr");
-     //   reader->Update(); 
-        //reader->GetOutput()->Register();
-     //  this->bbSetOutputOut(reader->GetOutput());
 }
+
+
 template <class TImage>
 void ItkImagesChooserDialogBox::ExportVTK()
 {
@@ -100,40 +194,34 @@ void ItkImagesChooserDialogBox::ExportVTK()
                        dlg->split3Din3Dvtk<TImage>( (*it) );
                  }
                  bbSetOutputOutVImages( dlg->getVtkImagesSelected() ); 
-        } 
-        else if (dlg->getDims().front() == 4)
-        { 
+        } else if (dlg->getDims().front() == 4) { 
                // To Test
                 //  dlg->split4Din3Dvtk("d:/temp2");
                 // bbSetOutputOutVImages( dlg->getVtkImagesSelected()); 
-         } 
-        else
-        {
-                 // NOT IMPLEMENTED YET FOR DIMENSIONS > 4
-       
-        }
-        
+         } else {
+                 // NOT IMPLEMENTED YET FOR DIMENSIONS > 4     
+        } // if dlg
 }
+
 //===== 
 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
 //===== 
 void ItkImagesChooserDialogBox::bbUserSetDefaultValues()
-{
+{ 
 }
+
 //===== 
 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
 //===== 
 void ItkImagesChooserDialogBox::bbUserInitializeProcessing()
 {
-
 }
+
 //===== 
 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
 //===== 
 void ItkImagesChooserDialogBox::bbUserFinalizeProcessing()
 {
-
 }
-}
-// EO namespace bbcreaImageIO
+
+// EO namespace bbcreaImageIO
index fa1d9106742b27a8d1609938d79bedd597f5c5fe..b4923903438d91be628acfb1466026dfd64b18af 100644 (file)
@@ -75,7 +75,9 @@ class bbcreaImageIO_EXPORT ItkImagesChooserDialogBox
 
     private:
     // Template read method 
-    template<class TImage> void Export();
+
+//EED    template<class TImage> void Export();
+template <typename  ty, size_t di> void Export();
 
        // Template export vtk Images
        template<class TImage> void ExportVTK();
index 926e1181675271f373a4e08021c5670b1fa536a3..a8db5f73ed26584d538de30ea503e6ed0f2b050f 100644 (file)
 #include "creaImageIOWxAnySimpleDlg.h"
 
 #include "creaImageIOWxGimmickReaderDialog.h"
-#include <itkAnalyzeImageIO.h>
+
+#if ITK_VERSION_MAJOR < 4 //  : WARNING: deprecated in ITK 4.0
+#  include <itkAnalyzeImageIO.h>
+#  include <itkDICOMSeriesFileNames.h>
+#else // ITK_VERSION_MAJOR < 4
+#  include <itkGDCMSeriesFileNames.h>
+#endif // ITK_VERSION_MAJOR < 4
+
 #include <itkImageFileReader.h>
 #include <itkImageSeriesReader.h>
 #include <itkImage.h>
 #include <itkImageSeriesWriter.h>
 #include <itkGDCMImageIO.h>
-#include <itkDICOMSeriesFileNames.h>
 #include <itkNumericSeriesFileNames.h>
 #include <itkVectorImage.h>
 #include <itkMetaImageIO.h>
@@ -102,25 +108,28 @@ namespace creaImageIO
                         std::string name = crea::wx2std(wxArray[i]);
                         // FOR THE MOMENT ONLY short 3D et short 4D
                         readImg(name);
-                    }
-                } 
-                else {
+                    } // for
+                } else {
                     // TO DO WARNING MESSAGES
-                }
-          }
+                } // if
+          } // if
           SetReturnCode( resultShowModal );
 //         Close();
           EndModal( resultShowModal );
       }
         
+
+/////////////////////////////////////////////////////////////////////
+//                                                                  //
+//////////////////////////////////////////////////////////////////////
      void WxAnySimpleDlg::setExts(std::vector<std::string> i_exts)
      {
          m_exts = i_exts;
      }
- /////////////////////////////////////////////////////////////////////
+
+/////////////////////////////////////////////////////////////////////
 //                                                                  //
 //////////////////////////////////////////////////////////////////////
-
       void WxAnySimpleDlg::OnReadDirectory(wxCommandEvent &event)
       {
          int resultShowModal;
@@ -132,33 +141,55 @@ namespace creaImageIO
          if ( resultShowModal==wxID_OK )
          {  
             std::string path = crea::wx2std(dirDlg->GetPath());
+
+/*
             typedef boost::filesystem::directory_iterator dir_it;
             dir_it itr(path);
             dir_it end_itr;
-            /*if (boost::filesystem::exists(path))
-            {*/
+//            if (boost::filesystem::exists(path))
+//            {
                 for(;itr != end_itr; ++itr)
                 {
-                       bvalid = m_exts.size() == 0? true : false;
-                       std::vector<std::string>::iterator it = m_exts.begin();
-                                          std::string ext = itr->path().filename().string().substr(itr->path().filename().string().find_last_of("."));
-                       for(; it != m_exts.end(); it++)
-                       {
-                           if(ext == (*it) )
-                           {
-                               bvalid = true;
-                               break;
-                           }
-                       }
+//EED 
+// All files have the same extention
+//                      bvalid = m_exts.size() == 0? true : false;
+//                      std::vector<std::string>::iterator it = m_exts.begin();
+//                                        std::string ext = itr->path().filename().string().substr(itr->path().filename().string().find_last_of("."));
+//                       for(; it != m_exts.end(); it++)
+//                       {
+//                           if(ext == (*it) )
+//                           {
+//                               bvalid = true;
+//                               break;
+//                           }
+//                       } // for 
+bvalid=true;
                        if (!boost::filesystem::is_directory(itr->status()) && bvalid)
                        {
-                           readImg(itr->path().string().c_str());
-                       }
-                }
-         }
+printf("EED WxAnySimpleDlg::OnReadDirectory  Each file %s \n", itr->path().string().c_str() );
+                           readImg( itr->path().string().c_str() );
+                       } // if 
+                } // for itr
+*/
+
+                               typedef vector<boost::filesystem::path> vec;             // store paths
+                               vec v;                                // so we can sort them later
+                               copy(boost::filesystem::directory_iterator(path), boost::filesystem::directory_iterator(), back_inserter(v));
+                               sort(v.begin(), v.end());             // sort, since directory iteration
+                                                                     // is not ordered on some file systems
+                               for (vec::const_iterator it (v.begin()); it != v.end(); ++it)
+                               {
+                           readImg( it->string().c_str() );
+                               } // for
+
+
+
+
+         } // if OK
          SetReturnCode( resultShowModal );
 //         Close();
          EndModal( resultShowModal );
+
       }
 
 //////////////////////////////////////////////////////////////////////
@@ -230,9 +261,11 @@ namespace creaImageIO
             return imageIO->GetNumberOfDimensions();
      }
 
+
      void WxAnySimpleDlg::readImg(const std::string &i_name)
      {
           size_t dims = getNumberOfDimensions(i_name);
+
           //const std::type_info  *type= &getType(i_name);
           switch(dims)
           {
@@ -339,6 +372,7 @@ namespace creaImageIO
               }
               else
               {
+                               printf("EED WxAnySimpleDlg::readImg Not type found   for DIM 3 \n");
                   //????FCY, so what the type????
               }
               break;
@@ -481,6 +515,7 @@ namespace creaImageIO
                }
                else
                {
+                               printf("EED WxAnySimpleDlg::readImg Not type found   for DIM 4 \n");
                   //????FCY, so what the type????
                }
                break;
@@ -513,7 +548,11 @@ namespace creaImageIO
       {
           typedef itk::Image<short,3> TImage;
           typedef itk::GDCMImageIO GDCMType;
+#if ITK_VERSION_MAJOR < 4
           typedef itk::DICOMSeriesFileNames dicnames;
+#else // ITK_VERSION_MAJOR < 4
+          typedef itk::GDCMSeriesFileNames dicnames;
+#endif // ITK_VERSION_MAJOR < 4
           GDCMType::Pointer gdcmIO = GDCMType::New(); 
           dicnames::Pointer generator = dicnames::New();
 
index df248194e422405edfd7a69d4515ae6bfd69194a..65c80a627f9c92bee84340ce7cabca029f0a2abe 100644 (file)
@@ -102,13 +102,13 @@ namespace creaImageIO
              for(; it != m_AnyImages.end(); it++)
              {
                  imgs.push_back(boost::any_cast<TImage*> (*it));
-             }
+             } // for
              return imgs;
           }
           bool AllSameType();
                  template <class TImage> 
                  void split3Din3Dvtk(TImage* i_Img)
-                {
+               {
                        typedef itk::ImageToVTKImageFilter< TImage > ConnectorType;
                         typename ConnectorType::Pointer       connector = ConnectorType::New();
                         connector->SetInput(i_Img);
@@ -127,14 +127,11 @@ namespace creaImageIO
 
                        m_Vresults.push_back(im);
                 }
-
                  
         template <typename TImage> 
         void split4Din3Dvtk(TImage* i_Img);
 
     private:
-
         // strange compile error with gcc 4.5.1-4 //JPR        
         std::vector</*const*/ size_t>           m_AnyDims;   //comment out const JPR
         std::vector</*const*/ std::type_info *> m_AnyType;   //comment out const JPR
@@ -145,7 +142,6 @@ namespace creaImageIO
         wxString infoimage;
         std::string m_dir;
 
-
        bool m_dicom;
         /// interface to read data
         SimpleView m_view;
@@ -157,6 +153,5 @@ namespace creaImageIO
         const std::type_info & getType(const std::string &i_name);
     };
 
-
 }// namespace creaImageIO
 #endif //__creaImageWxAnySimpleDlg_h_INCLUDED__
index bce7fc7f4ca08de141d1f1d87bd33b49d4e551e9..1dff6b3fd0246dd09fa8e90d14a8012aec7dca2a 100644 (file)
@@ -80,8 +80,7 @@ namespace creaImageIO
                                threads);
       mView->Initialize();
           // Connect the AddProgress callback
-      mView->ConnectValidationObserver
-               ( boost::bind( &WxGimmickReaderDialog::OnValid , this, _1 ) );
+      mView->ConnectValidationObserver( boost::bind( &WxGimmickReaderDialog::OnValid , this, _1 ) );
     }
     catch (crea::Exception e)
     {