Hello everyone. <br><br>I emailed the las week regarding the proper use of the itkQtAdaptor.h file for connecting ITK filters to QT GUI's. I have been using it and having fun even if sometimes one must modify the itkQtAdaptor file to get a connection to work. <br>
<br>BUT I am trying to implement the<font size="2"> GeodesicActiveContourLevelSetImageFilter </font>example with a QT UI using the itkQtAdaptor.h, however when trying to connect a QT widget to either SetPropagationScaling, AdvectionScaling or CurvatureScaling I get a similar error because these member functions take 'Value Type v" as an argument. <br>
<br>How can I cast or adapt this to work say with "double" or "float" data? <br><br>Thank you, below is the compile error... and code attached <br><br>Sergio <br><br>//////////////////////<br>/home/echopixel/Desktop/engine/code/brynb/src/main.cxx:368: error: no matching function for call to ‘QtSlotAdaptor<itk::GeodesicActiveContourLevelSetImageFilter<itk::Image<float, 2u>, itk::Image<float, 2u>, float> >::SetCallbackFunction(itk::SmartPointer<itk::GeodesicActiveContourLevelSetImageFilter<itk::Image<float, 2u>, itk::Image<float, 2u>, float> >&, void (itk::SegmentationLevelSetImageFilter<itk::Image<float, 2u>, itk::Image<float, 2u>, float>::*)(float))’<br>
/home/echopixel/Desktop/engine/code/brynb/src/itkQtAdaptor.h:67: note: candidates are: void QtSlotAdaptor<T>::SetCallbackFunction(T*, void (T::*)()) [with T = itk::GeodesicActiveContourLevelSetImageFilter<itk::Image<float, 2u>, itk::Image<float, 2u>, float>]<br>
/home/echopixel/Desktop/engine/code/brynb/src/itkQtAdaptor.h:76: note: void QtSlotAdaptor<T>::SetCallbackFunction(T*, void (T::*)(unsigned int)) [with T = itk::GeodesicActiveContourLevelSetImageFilter<itk::Image<float, 2u>, itk::Image<float, 2u>, float>]<br>
/home/echopixel/Desktop/engine/code/brynb/src/itkQtAdaptor.h:85: note: void QtSlotAdaptor<T>::SetCallbackFunction(T*, void (T::*)(double)) [with T = itk::GeodesicActiveContourLevelSetImageFilter<itk::Image<float, 2u>, itk::Image<float, 2u>, float>]<br>
make[2]: *** [CMakeFiles/brynb.dir/main.cxx.o] Error 1<br>make[1]: *** [CMakeFiles/brynb.dir/all] Error 2<br>make: *** [all] Error 2<br><br><br><br>