<div dir="ltr"><div><div><div><div>Dear Michka<br>Thank you for your reply. <br><br>I will take that into consideration when building ITK next time.<br></div>Unfortunately there is little comprehensive guide to what all those options in cmake really mean or do, so id rather build more than less. <br></div>Also VTK is pretty heavy in term of modules, and I have the impression that it is noticeably faster. <br></div>Best<br></div>JP<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 27, 2016 at 10:03 PM, Michka Popoff <span dir="ltr"><<a href="mailto:michkapopoff@gmail.com" target="_blank">michkapopoff@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi<br>
<br>
to reduce the import time, one solution would be to reduce the number of wrapped modules<br>
and types (and image/vector dimensions). If you re-build ITK by disabling the things you<br>
don’t need, there will be less things to load.<br>
<br>
I have some ideas on how to improve the import situation but never came to it, so<br>
not sure anybody has been working intensively on that.<br>
<br>
For the warnings, we need to fix them in ITK.<br>
The QuadEdgeMeshCellTraitsInfo class is probably not be usable as is.<br>
<br>
If you want to hide the warnings, you can use (like for other python warnings):<br>
<br>
import warnings<br>
warnings.simplefilter(“ignore", Warning)<br>
<br>
You can reset the filter after the import.<br>
<br>
That should to it.<br>
<br>
<br>
Michka<br>
<div><div class="h5"><br>
> On 26 Jun 2016, at 22:07, <a href="mailto:cervellone@gmail.com">cervellone@gmail.com</a> wrote:<br>
><br>
> Hello all,<br>
><br>
> Is there a way to speed up the import of itk in an application and the suppression of the warnings I get every time I run the python script ?<br>
><br>
> Thank you all<br>
> JP<br>
><br>
><br>
> Warning: Unknown parameter 'itk::QuadEdgeMeshCellTraitsInfo< 3,float,float,unsigned long,unsigned long,unsigned char,itk::QuadEdgeMeshPoint< float,3,itk::GeometricalQuadEdge< unsigned long, unsigned long,bool,bool,true > >,itk::MapContainer< unsigned long,itk::QuadEdgeMeshPoint< float,3,itk::GeometricalQuadEdge< unsigned long,unsigned long,bool,bool,true > > >,std::set< unsigned long >,itk::GeometricalQuadEdge< unsigned long,unsigned long,bool,bool,true > >' in template 'itk::CellInterface'<br>
><br>
><br>
</div></div>> _____________________________________<br>
> Powered by <a href="http://www.kitware.com" rel="noreferrer" 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" rel="noreferrer" 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" rel="noreferrer" 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" rel="noreferrer" 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" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/insight-users</a><br>
<br>
</blockquote></div><br></div>