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&#39;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 &#39;Value Type v&quot; as an argument. <br>
<br>How can I cast or adapt this to work say with &quot;double&quot; or &quot;float&quot; 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&lt;itk::GeodesicActiveContourLevelSetImageFilter&lt;itk::Image&lt;float, 2u&gt;, itk::Image&lt;float, 2u&gt;, float&gt; &gt;::SetCallbackFunction(itk::SmartPointer&lt;itk::GeodesicActiveContourLevelSetImageFilter&lt;itk::Image&lt;float, 2u&gt;, itk::Image&lt;float, 2u&gt;, float&gt; &gt;&amp;, void (itk::SegmentationLevelSetImageFilter&lt;itk::Image&lt;float, 2u&gt;, itk::Image&lt;float, 2u&gt;, float&gt;::*)(float))’<br>
/home/echopixel/Desktop/engine/code/brynb/src/itkQtAdaptor.h:67: note: candidates are: void QtSlotAdaptor&lt;T&gt;::SetCallbackFunction(T*, void (T::*)()) [with T = itk::GeodesicActiveContourLevelSetImageFilter&lt;itk::Image&lt;float, 2u&gt;, itk::Image&lt;float, 2u&gt;, float&gt;]<br>
/home/echopixel/Desktop/engine/code/brynb/src/itkQtAdaptor.h:76: note:    void QtSlotAdaptor&lt;T&gt;::SetCallbackFunction(T*, void (T::*)(unsigned int)) [with T = itk::GeodesicActiveContourLevelSetImageFilter&lt;itk::Image&lt;float, 2u&gt;, itk::Image&lt;float, 2u&gt;, float&gt;]<br>
/home/echopixel/Desktop/engine/code/brynb/src/itkQtAdaptor.h:85: note:    void QtSlotAdaptor&lt;T&gt;::SetCallbackFunction(T*, void (T::*)(double)) [with T = itk::GeodesicActiveContourLevelSetImageFilter&lt;itk::Image&lt;float, 2u&gt;, itk::Image&lt;float, 2u&gt;, float&gt;]<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>