<html><head></head><body><div style="color:#000; background-color:#fff; font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px"><div dir="ltr" id="yui_3_16_0_ym19_1_1501340223818_3008"><span id="yui_3_16_0_ym19_1_1501340223818_3007">I guess my work around for now is to add this function to itkN4BiasFieldCorrectionImageFilter.h:</span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1501340223818_3006"><span><br></span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1501340223818_3002">  const BiasFieldControlPointLatticeType* GetBiasFieldControlPointLatticeImage() const</div><div dir="ltr" id="yui_3_16_0_ym19_1_1501340223818_3003">    {</div><div dir="ltr" id="yui_3_16_0_ym19_1_1501340223818_3004">    return static_cast<const BiasFieldControlPointLatticeType*>( this->m_LogBiasFieldControlPointLattice );</div><div dir="ltr"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1501340223818_3005">    }</div><div dir="ltr" id="yui_3_16_0_ym19_1_1501340223818_3005"><br></div> <div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 13px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"><font size="2" face="Arial"> On Saturday, July 29, 2017 10:35 AM, Nick Cullen via Insight-users <insight-users@itk.org> wrote:<br></font></div>  <br><br> <div class="y_msg_container"><div id="yiv8081907376"><div><div style="color:#000;background-color:#fff;font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px;"><div dir="ltr" id="yiv8081907376yui_3_16_0_ym19_1_1501338007240_11603">When I run itk.N4BiasFieldCorrectionImageFilter, I want to get the control point lattice, but when I run:</div><div dir="ltr" id="yiv8081907376yui_3_16_0_ym19_1_1501338007240_10006"><br></div><div dir="ltr" id="yiv8081907376yui_3_16_0_ym19_1_1501338007240_10005">correcter.GetLogBiasFieldControlPointLattice()<br></div><div dir="ltr" id="yiv8081907376yui_3_16_0_ym19_1_1501338007240_10005"><br></div><div dir="ltr" id="yiv8081907376yui_3_16_0_ym19_1_1501338007240_10005">It returns a SmartPointer: <Swig Object of type 'itk::SmartPointer< itk::Image< itk::Vector< float,1 >,2 > > *' at 0x15e775300></div><div dir="ltr" id="yiv8081907376yui_3_16_0_ym19_1_1501338007240_10005"><br></div><div dir="ltr" id="yiv8081907376yui_3_16_0_ym19_1_1501338007240_10005">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?</div><div dir="ltr" id="yiv8081907376yui_3_16_0_ym19_1_1501338007240_10005"><br></div><div dir="ltr" id="yiv8081907376yui_3_16_0_ym19_1_1501338007240_10005">Thanks!!</div></div></div></div>_____________________________________<br>Powered by www.kitware.com<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://public.kitware.com/mailman/listinfo/insight-users" target="_blank">http://public.kitware.com/mailman/listinfo/insight-users</a><br><br><br></div>  </div> </div>  </div></div></body></html>