<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hi everyone,<div><br></div><div>I’ve tried to use the <font color="#008000">itkMultiLabelSTAPLEImageFilter and it appears that, even without trying to “run” it, something went wrong for the complier (clang or gcc). I’m using ITK4.5</font></div><div><font color="#008000"><br></font></div><div><font color="#008000">Here is a sample of the code :</font></div><div><font color="#008000"><br></font></div><div>
<pre style="margin-top: 0px; margin-bottom: 0px;"><!--StartFragment--><span style=" color:#c0c0c0;"> </span><span style=" color:#008000;">//ITK</span><span style=" color:#c0c0c0;"> </span><span style=" color:#008000;">declaration</span></pre>
<pre style="margin-top: 0px; margin-bottom: 0px;"><span style=" color:#c0c0c0;">  </span><span style=" color:#808000;">const</span><span style=" color:#c0c0c0;">   </span><span style=" color:#808000;">unsigned</span><span style=" color:#c0c0c0;"> </span><span style=" color:#808000;">int</span><span style=" color:#c0c0c0;">        </span>Dimension<span style=" color:#c0c0c0;"> </span>=<span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">3</span>;</pre>
<pre style="margin-top: 0px; margin-bottom: 0px;"><span style=" color:#c0c0c0;">  </span><span style=" color:#808000;">typedef</span><span style=" color:#c0c0c0;"> </span><span style=" color:#800080;">itk</span>::<span style=" color:#800080;">Image</span><<span style=" color:#c0c0c0;"> </span><span style=" color:#808000;">short</span>,<span style=" color:#c0c0c0;"> </span>Dimension<span style=" color:#c0c0c0;"> </span>><span style=" color:#c0c0c0;">    </span><span style=" color:#800080;">ShortImageType</span>;</pre>
<pre style="margin-top: 0px; margin-bottom: 0px;"><br></pre>
<pre style="margin-top: 0px; margin-bottom: 0px;"><span style=" color:#c0c0c0;">  </span><span style=" color:#808000;">typedef</span><span style=" color:#c0c0c0;"> </span><span style=" color:#800080;">itk</span>::<span style=" color:#800080;">MultiLabelSTAPLEImageFilter</span><<span style=" color:#c0c0c0;"> </span><span style=" color:#800080;">ShortImageType</span><span style=" color:#c0c0c0;"> </span>><span style=" color:#c0c0c0;">  </span><span style=" color:#800080;">STAPLEFilterType</span>;</pre>
<pre style="margin-top: 0px; margin-bottom: 0px;"><span style=" color:#c0c0c0;">  </span><span style=" color:#808000;">typedef</span><span style=" color:#c0c0c0;"> </span><span style=" color:#800080;">STAPLEFilterType</span>::<span style=" color:#800080;">Pointer</span><span style=" color:#c0c0c0;"> </span><span style=" color:#800080;">STAPLEFilterPointer</span>;</pre>
<pre style="margin-top: 0px; margin-bottom: 0px;"><br></pre>
<pre style="margin-top: 0px; margin-bottom: 0px;"><span style=" color:#c0c0c0;">  </span><span style=" color:#808000;">typedef</span><span style=" color:#c0c0c0;"> </span><span style=" color:#800080;">ShortImageType</span>::<span style=" color:#800080;">Pointer</span><span style=" color:#c0c0c0;"> </span><span style=" color:#800080;">ShortImagePointer</span>;</pre>
<pre style="margin-top: 0px; margin-bottom: 0px;"><br></pre>
<pre style="margin-top: 0px; margin-bottom: 0px;"><span style=" color:#c0c0c0;">  </span><span style=" color:#800080;">STAPLEFilterPointer</span><span style=" color:#c0c0c0;"> </span>filter<span style=" color:#c0c0c0;"> </span>=<span style=" color:#c0c0c0;"> </span><span style=" color:#800080;">STAPLEFilterType</span>::<span style=" color:#800000;">New</span>();</pre>
<pre style="margin-top: 0px; margin-bottom: 0px;"><br><!--EndFragment--></pre><pre style="margin-top: 0px; margin-bottom: 0px;">and the compiler message :</pre><pre style="margin-top: 0px; margin-bottom: 0px;"><br></pre><pre style="margin-top: 0px; margin-bottom: 0px;"><div style="margin: 0px; font-size: 11px; font-family: Menlo; background-color: rgb(253, 255, 255);">In file included from /Users/rousseau/Code/src/InsightToolkit-4.5.0/Modules/IO/ImageBase/include/itkImageFileReader.h:22:</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; background-color: rgb(253, 255, 255);">In file included from /Users/rousseau/Code/src/InsightToolkit-4.5.0/Modules/IO/ImageBase/include/itkImageIOBase.h:26:</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; background-color: rgb(253, 255, 255);">In file included from /Users/rousseau/Code/src/InsightToolkit-4.5.0/Modules/Core/Common/include/itkImageIORegion.h:24:</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; background-color: rgb(253, 255, 255);">In file included from /Users/rousseau/Code/src/InsightToolkit-4.5.0/Modules/Core/Common/include/itkImageRegion.h:34:</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; background-color: rgb(253, 255, 255);">In file included from /Users/rousseau/Code/src/InsightToolkit-4.5.0/Modules/Core/Common/include/itkContinuousIndex.h:22:</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; background-color: rgb(253, 255, 255);">In file included from /Users/rousseau/Code/src/InsightToolkit-4.5.0/Modules/Core/Common/include/itkIndex.h:23:</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; background-color: rgb(253, 255, 255);">In file included from /Users/rousseau/Code/src/InsightToolkit-4.5.0/Modules/Core/Common/include/itkMath.h:33:</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; background-color: rgb(253, 255, 255);"><b>/Users/rousseau/Code/src/InsightToolkit-4.5.0/Modules/Core/Common/include/itkConceptChecking.h:749:17: </b><span style="color: #c23720"><b>error: </b></span><b>no viable conversion from 'UniqueType_bool<</b><span style="color: #33bbc7"><b>true</b></span><b>>' to 'UniqueType_bool<</b><span style="color: #33bbc7"><b>(Self::Unsigned)</b></span><b>>'</b></div><div style="margin: 0px; font-size: 11px; font-family: Menlo; background-color: rgb(253, 255, 255);">      UnsignedT a = TrueT();</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(51, 188, 38); background-color: rgb(253, 255, 255);"><b>                ^   ~~~~~~~</b></div><div style="margin: 0px; font-size: 11px; font-family: Menlo; background-color: rgb(253, 255, 255);"><b>/Users/rousseau/Code/src/InsightToolkit-4.5.0/Modules/Core/Common/include/itkConceptChecking.h:755:3: note: </b>in instantiation of member function 'itk::Concept::IsUnsignedInteger<short>::Constraints::constraints' requested here</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; background-color: rgb(253, 255, 255);">  itkConceptConstraintsMacro();</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(51, 188, 38); background-color: rgb(253, 255, 255);"><b>  ^</b></div><div style="margin: 0px; font-size: 11px; font-family: Menlo; background-color: rgb(253, 255, 255);"><b>/Users/rousseau/Code/src/InsightToolkit-4.5.0/Modules/Core/Common/include/itkConceptChecking.h:62:36: note: </b>expanded from macro 'itkConceptConstraintsMacro'</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; background-color: rgb(253, 255, 255);">  typedef Enforcer< & Constraints::constraints > EnforcerInstantiation</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(51, 188, 38); background-color: rgb(253, 255, 255);"><b>                                   ^</b></div><div style="margin: 0px; font-size: 11px; font-family: Menlo; background-color: rgb(253, 255, 255);"><b>/Users/rousseau/Code/src/InsightToolkit-4.5.0/Modules/Segmentation/LabelVoting/include/itkMultiLabelSTAPLEImageFilter.hxx:229:9: note: </b>in instantiation of member function 'itk::MultiLabelSTAPLEImageFilter<itk::Image<short, 3>,</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; background-color: rgb(253, 255, 255);">      itk::Image<short, 3>, float>::InitializeConfusionMatrixArrayFromVoting' requested here</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; background-color: rgb(253, 255, 255);">  this->InitializeConfusionMatrixArrayFromVoting();</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(51, 188, 38); background-color: rgb(253, 255, 255);"><b>        ^</b></div><div style="margin: 0px; font-size: 11px; font-family: Menlo; background-color: rgb(253, 255, 255);"><b>/Users/rousseau/Code/src/InsightToolkit-4.5.0/Modules/Segmentation/LabelVoting/include/itkMultiLabelSTAPLEImageFilter.h:128:15: note: </b>in instantiation of member function 'itk::MultiLabelSTAPLEImageFilter<itk::Image<short, 3>,</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; background-color: rgb(253, 255, 255);">      itk::Image<short, 3>, float>::GenerateData' requested here</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; background-color: rgb(253, 255, 255);">  itkNewMacro(Self);</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(51, 188, 38); background-color: rgb(253, 255, 255);"><b>              ^</b></div><div style="margin: 0px; font-size: 11px; font-family: Menlo; background-color: rgb(253, 255, 255);"><b>/Users/rousseau/Code/src/InsightToolkit-4.5.0/Modules/Core/Common/include/itkMacro.h:142:21: note: </b>expanded from macro 'itkNewMacro'</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; background-color: rgb(253, 255, 255);">  itkSimpleNewMacro(x)                                         \</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(51, 188, 38); background-color: rgb(253, 255, 255);"><b>                    ^</b></div><div style="margin: 0px; font-size: 11px; font-family: Menlo; background-color: rgb(253, 255, 255);"><b>/Users/rousseau/Code/src/InsightToolkit-4.5.0/Modules/Core/Common/include/itkMacro.h:152:22: note: </b>expanded from macro 'itkSimpleNewMacro'</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; background-color: rgb(253, 255, 255);">      smartPtr = new x;                                        \</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(51, 188, 38); background-color: rgb(253, 255, 255);"><b>                     ^</b></div><div style="margin: 0px; font-size: 11px; font-family: Menlo; background-color: rgb(253, 255, 255);"><b>/Users/rousseau/Code/src/fbrain/Utilities/btkSTAPLE.cxx:80:50: note: </b>in instantiation of member function 'itk::MultiLabelSTAPLEImageFilter<itk::Image<short, 3>, itk::Image<short, 3>, float>::New' requested here</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; background-color: rgb(253, 255, 255);">  STAPLEFilterPointer filter = STAPLEFilterType::New();</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(51, 188, 38); background-color: rgb(253, 255, 255);"><b>                                                 ^</b></div><div style="margin: 0px; font-size: 11px; font-family: Menlo; background-color: rgb(253, 255, 255);"><b>/Users/rousseau/Code/src/InsightToolkit-4.5.0/Modules/Core/Common/include/itkConceptChecking.h:112:8: note: </b>candidate constructor (the implicit copy constructor) not viable: no known conversion from 'TrueT' (aka 'UniqueType_bool<true>')</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; background-color: rgb(253, 255, 255);">      to 'const itk::Concept::Detail::UniqueType_bool<false> &' for 1st argument</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; background-color: rgb(253, 255, 255);">struct UniqueType_bool {};</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(51, 188, 38); background-color: rgb(253, 255, 255);"><b>       ^</b></div><div style="margin: 0px; font-size: 11px; font-family: Menlo; background-color: rgb(253, 255, 255);">1 error generated.</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; background-color: rgb(253, 255, 255);"><br></div><div style="margin: 0px; font-size: 11px; font-family: Menlo; background-color: rgb(253, 255, 255);"><br></div><div style="margin: 0px; font-size: 11px; font-family: Menlo; background-color: rgb(253, 255, 255);">Any idea ?</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; background-color: rgb(253, 255, 255);"><br></div><div style="margin: 0px; font-size: 11px; font-family: Menlo; background-color: rgb(253, 255, 255);">thank you</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; background-color: rgb(253, 255, 255);">françois</div></pre><div><br></div><div><br></div><div apple-content-edited="true"><br>
</div>
<br></div></body></html>