<br>Hi Aaron,<br><br>The dimension of an image (2D, 3D, 4D....) can be queried with<br><br>                 image-&gt;GetImageDimension();<br><br>The size of the image (number of pixels along each dimension)<br>can be queried with <br>
<br>      SizeType size =   image-&gt;GetBufferedRegion().GetSize()<br><br>  size[0] --&gt; number of pixels along X<br>  size[1] --&gt; number of pixels along Y<br>  size[2] --&gt; number of pixels along Z<br><br><br>You seem to be looking at the requested region, which is<br>
something, that normally you shouldn&#39;t have to deal with. <br>The requested region is computed at the convenience of <br>the subsequent filters in the pipeline.<br><br>You will get a more complete set of information by using<br>
<br>      image-&gt;Print( std::cout )<br><br>You may want to pay special attention to the regions<br><br>    LargestPossibleRegion   and <br>    BufferedRegion<br><br><br>Let us know if you still have any questions,<br><br>
<br>Regards,<br><br><br>      Luis<br><br><br>---------------------------------------------------------------------------------<br><div class="gmail_quote">On Thu, Jun 18, 2009 at 11:39 AM, Arun Vishwanathan <span dir="ltr">&lt;<a href="mailto:arun.vishwanathan@bioquant.uni-heidelberg.de">arun.vishwanathan@bioquant.uni-heidelberg.de</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Dear Luis<br>
<br>
in the following code could you please let me know as to why the<br>
dimensionality of the resultant image seems to be 5 when i check its<br>
size?the image used is 2d<br>
//the filter regiongrower operates on 2d slice//<br>
<br>
<br>
mitk::Image::Pointer resultImage = mitk::ImportItkImage(<br>
regionGrower-&gt;GetOutput() )<br>
cout&lt;&lt;&quot;size of....&quot;&lt;&lt;resultImage-&gt;GetRequestedRegion().GetSize()&lt;&lt;std::endl;<br>
<br>
Regards<br>
Aaron<br>
</blockquote></div><br>