[ITK-users] How to use smart pointer in WrapITK?

Nick Cullen nickmarch31 at yahoo.com
Sat Jul 29 10:58:31 EDT 2017


I guess my work around for now is to add this function to itkN4BiasFieldCorrectionImageFilter.h:
  const BiasFieldControlPointLatticeType* GetBiasFieldControlPointLatticeImage() const    {    return static_cast<const BiasFieldControlPointLatticeType*>( this->m_LogBiasFieldControlPointLattice );    }
 

    On Saturday, July 29, 2017 10:35 AM, Nick Cullen via Insight-users <insight-users at itk.org> wrote:
 

 When I run itk.N4BiasFieldCorrectionImageFilter, I want to get the control point lattice, but when I run:
correcter.GetLogBiasFieldControlPointLattice()

It returns a SmartPointer: <Swig Object of type 'itk::SmartPointer< itk::Image< itk::Vector< float,1 >,2 > > *' at 0x15e775300>
Can I get the actual image from this in WrapITK? Is this happening because I haven't wrapped another class - specifically itk::BSplineScatteredDataPointSetToImageFilter, which is where the LogBiasFieldControlPointLattice comes from?
Thanks!!_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/insight-users


   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/insight-users/attachments/20170729/9b2b1dd9/attachment.html>


More information about the Insight-users mailing list