[Insight-users] Bug in itkImageRegion?
Estanislao Oubel
stan.oubel at gmail.com
Tue Dec 14 04:39:44 EST 2010
Thanks Sergio and Dženan, you confirm what I thought.
My problem was that I had a region defined in word coordinates, and a
point outside this region (always in WC)
was inside when passing to continuous indexes. This made my program fail.
stan
Le 10/12/2010 12:31, Dženan Zukić a écrit :
> The pixel centered on (10,10,10), has extent
> ([9.5,10.5],[9.5,10.5],[9.5,10.5]). So it is not an error. Similarly,
> pixel (0,0) has extent ([-0.5,0.5],[-0.5,0.5]). This comes from DICOM
> specification logic of interpreting pixel locations as centers of
> pixels/voxels.
>
> Dženan
>
> On Thu, Dec 9, 2010 at 14:50, Sergio Vera <sergio.vera at alma3d.com
> <mailto:sergio.vera at alma3d.com>> wrote:
>
> Hi Estanislao
>
> I'm just thinking that this behavior is related with the voronoi
> region that a pixel defines (see pag 40 of the ITK Sotfware Guide)
> maybe a pixel at 9.5, 9.5, 9.5 has a voronoi area that is inside
> the region you are defining...
>
> Maybe anyone more experienced with the tookit can confirm/deny this.
>
> Regards
>
> On Wed, Dec 8, 2010 at 12:02 PM, Estanislao Oubel
> <stan.oubel at gmail.com <mailto:stan.oubel at gmail.com>> wrote:
>
> Hi all,
>
> I've defined a region of size = [10 10 10] starting at index =
> [10 10 10].
> The method IsInside returns true for a continuous index = [9.5
> 9.5 9.5], but I would have expected a false value since this
> index is (strictly) outside the region. So I'm not sure if
> it's a bug or I'm misinterpreting the result ...
>
> I've found a similar post here:
>
> http://www.itk.org/pipermail/insight-users/2002-September/000984.html
>
> I've attached the source files I used for testing (itk 3.20)
>
> Thanks,
>
> stan
>
> _____________________________________
> Powered by www.kitware.com <http://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
>
>
>
>
> --
> Sergio Vera
>
> Alma IT Systems
> C/ Vilana, 4B, 4º 1ª
> 08022 Barcelona
> T. (+34) 932 380 592
> www.alma3d.com <http://www.alma3d.com>
>
> _____________________________________
> Powered by www.kitware.com <http://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/20101214/f4edb7ff/attachment.htm>
More information about the Insight-users
mailing list