[Insight-users] Weird behavior fo itk::Image<>::RegionType

Bill Lorensen bill.lorensen at gmail.com
Fri Aug 16 15:21:53 EDT 2013


If you post a small, minimal example that with all includes, perhaps we can
help.



On Fri, Aug 16, 2013 at 3:17 PM, Gabriel Santiago <
santiago.eletrica at gmail.com> wrote:

> Dear all,
>
> I am trying to reproduce the example of page 118, of the itkSoftwareGuide,
> changing
>
> *typedef itk::ImageMaskSpatialObject<3> ImageMaskSpatialObject;*
>
> to
>
> *typedef itk::Image<InputAnalyzeImage, 3> Image3D;*
>
> I think it should work, but when I come to the following lines
>
> *    Image3D::SizeType size = inputRegion.GetSize();
>     size[plane] = 0;
>     Image3D::IndexType start = inputRegion.GetIndex();
>     const unsigned int sliceNumber = slice;
>     start[plane] = sliceNumber;
>
>     Image3D::RegionType desiredRegion;
>     desiredRegion.SetSize(size);
>     desiredRegion.SetIndex(start);*
>
> I am getting the following error messages:
>
> *Invalid argumentes:
> *
> *Candidates are:
> *
> *void SetSize(const itk::Size<<unknown>>&)  and
> void SetSize(unsigned long int, unsigned long int)
>
>
> Invalid argumentes:
> Candidates are:
> void SetIndex(const itk::Index<<unknown>>&)  and
> void SetIndex(unsigned long int, unsigned long int)
> *
>
> Can anyone, please, help me? I am using itk v4.2.
> What is going on?
>
> Thanks in advance,
>
> --
> Gabriel Santiago
>
> ~"As long as I live so long do I learn"~
> Ramakhrishna
>
> _____________________________________
> 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.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://www.itk.org/mailman/listinfo/insight-users
>
>


-- 
Unpaid intern in BillsBasement at noware dot com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20130816/7379cfd6/attachment.htm>


More information about the Insight-users mailing list