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