[ITK-dev] [ITK] use ThreadedIteratorRangePartitioner with itk Container ?

Bradley Lowekamp blowekamp at mail.nih.gov
Fri Aug 14 09:21:05 EDT 2015


Arnaund,

I would recommend using an index based partitioner as opposed to the iterator based algorithm due to on big O performance of the partitioning algorithms.

Brad

On Aug 14, 2015, at 5:30 AM, Arnaud Gelas <arnaudgelas at gmail.com> wrote:

> Hi Matt,
> 
> I would like to use itk::ThreadedIteratorRangePartitioner with itk::Mesh::PointsContainer or itk::Mesh::CellsContainer (i.e. itk::VectorContainer or itk::MapContainer).
> 
> At first, I am trying to add one test which basically duplicates itkThreadedIteratorRangePartitionerTest for the case of itk::VectorContainer, you can find a patch here:
> 
>      http://review.source.kitware.com/#/c/20079/
> 
> I have compilation errors, due to the fact that internally itk::ThreadedIteratorRangePartitioner uses std::distance and std::advance which requires some typedefs which are not available for itk::VectorContainer iterators...
> 
> Should I keep on working in that direction? I mean to try to fix these classes for itk container's iterator (adapt it for these cases)? Make specialization?
> 
> Thanks,
> Arnaud
> _______________________________________________
> 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://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-developers
> _______________________________________________
> Community mailing list
> Community at itk.org
> http://public.kitware.com/mailman/listinfo/community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/insight-developers/attachments/20150814/fd787c95/attachment.html>


More information about the Insight-developers mailing list