[Insight-users] Mask+Neumann Boundary Condition

Karthik Krishnan karthik.krishnan at kitware.com
Wed Nov 4 08:44:49 EST 2009


That's an abuse of what ShapedNeighborhood iterator is meant for. Its meant
for small shape templates. Theoretically, yes you can do this with that
class, but in practice no..

Its API is not meant for this. For each voxel in the mask, you will have to
activate each offset for the shape template pixel  by pixel ..

  shapedIt.ActivateOffset( offset1 ); ....

And you would duplicate your entire mask as a shape template. And it would
be slow.

I think you don't have such a class in ITK. However, it should not be hard
to write your own iterator.

Thanks
--
karthik


On Wed, Nov 4, 2009 at 3:27 AM, Michael Mai <Michael.Mai at zeiss-oim.de>wrote:

> See itk::ShapedNeighborhoodIterator (
> http://www.itk.org/Insight/Doxygen/html/classitk_1_1ShapedNeighborhoodIterator.html)
> with customized TBoundaryCondition.
>
>
> -----Ursprüngliche Nachricht-----
> Von: insight-users-bounces at itk.org [mailto:insight-users-bounces at itk.org]
> Im Auftrag von Brady McCary
> Gesendet: Dienstag, 3. November 2009 22:16
> An: insight-users at itk.org
> Betreff: [Insight-users] Mask+Neumann Boundary Condition
>
> insight-users,
>
> Is there an neighborhood iterator which will use a non-rectangular
> mask and a Neumann boundary condition? I.e., I would like an iterator
> that will
>
> 1. Only iterate over a mask I supply (e.g., an
> itk::ImageMaskSpatialObject).
> 2. Use the Neumann boundary condition to compute a neighborhood, using
> information only within the mask.
>
> Brady
> _____________________________________
> 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.html
>
> 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://www.itk.org/mailman/listinfo/insight-users
> _____________________________________
> 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.html
>
> 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://www.itk.org/mailman/listinfo/insight-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20091104/7999de20/attachment.htm>


More information about the Insight-users mailing list