<div dir="ltr"><div style>works! thanks!</div><div><br></div><div>SCRGP2$ cat Modules/Filtering/ImageFeature/wrapping/itkMaskFeaturePointSelectionFilter.wrap</div><div>itk_wrap_class("itk::MaskFeaturePointSelectionFilter" POINTER_WITH_2_SUPERCLASSES)</div>
<div> itk_wrap_image_filter("${WRAP_ITK_REAL}" 1 3)</div><div>itk_end_wrap_class()</div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Apr 3, 2013 at 8:25 AM, David Fuentes <span dir="ltr"><<a href="mailto:fuentesdt@gmail.com" target="_blank">fuentesdt@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks! that makes sense. I had a similar problem when using POINTER instead of POINTER_W_SUPERCLASS.<div>
<br></div><div>I saw a POINTER_W_2_SUPERCLASSES macro, but not sure if a POINTER_W_5_SUPERCLASSES was available.</div>
<div><br></div><div>I'll give it a try. </div><div>thanks again!<span class="HOEnZb"><font color="#888888"><br><div><div><br></div><div>df</div></div></font></span></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra">
<br><br><div class="gmail_quote">On Wed, Apr 3, 2013 at 7:31 AM, Bradley Lowekamp <span dir="ltr"><<a href="mailto:blowekamp@mail.nih.gov" target="_blank">blowekamp@mail.nih.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello David,<br>
<br>
My initial thought is that all of the superclasses are not wrapped in WrapITK with the required template parameters.<br>
<br>
Brad<br>
<div><div><br>
On Apr 2, 2013, at 6:23 PM, David Fuentes <<a href="mailto:fuentesdt@gmail.com" target="_blank">fuentesdt@gmail.com</a>> wrote:<br>
<br>
><br>
> Hi,<br>
><br>
> I'm attempting to add a python wrapping for the MaskFeaturePointSelectionFilter class using:<br>
><br>
> SCRGP2$ cat Modules/Filtering/ImageFeature/wrapping/itkMaskFeaturePointSelectionFilter.wrap<br>
> itk_wrap_class("itk::MaskFeaturePointSelectionFilter" POINTER_WITH_SUPERCLASS)<br>
> itk_wrap_image_filter("${WRAP_ITK_REAL}" 1 3)<br>
> itk_end_wrap_class()<br>
><br>
> everything builds fine, but the Update method is missing ?<br>
> I need to run update to get the feature points output.<br>
> How do i expose the Update method ?<br>
><br>
> In [2]: import itk<br>
><br>
> In [3]: ScalarImageType = itk.Image.F3<br>
><br>
> In [4]: featureSelectionFilter = itk.MaskFeaturePointSelectionFilter[ScalarImageType].New()<br>
><br>
> In [5]: featureSelectionFilter.Update()<br>
> ---------------------------------------------------------------------------<br>
> AttributeError Traceback (most recent call last)<br>
> /workarea/fuentes/github/<ipython-input-5-3f49bc774a25><br>
> in <module>()<br>
> ----> 1 featureSelectionFilter.Update()<br>
><br>
> AttributeError: 'itkMaskFeaturePointSelectionFilterIF3' object has no<br>
> attribute 'Update'<br>
><br>
><br>
><br>
><br>
> thanks,<br>
> David<br>
</div></div>> _____________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Kitware offers ITK Training Courses, for more information visit:<br>
> <a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
><br>
> Please keep messages on-topic and check the ITK FAQ at:<br>
> <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>