[Insight-users] Procedure to return the size in each dimension
   
    Luis Ibanez
     
    luis.ibanez at kitware.com
       
    Wed, 04 Feb 2004 12:49:32 -0500
    
    
  
Hi Radhika,
You can get size on each dimension, but it
will be dependent from the image region.
It could be something like:
ImageType::SizeType size =
   image->GetLargestPossibleRegion().GetSize();
size[0] ---> number of pixels along X
size[1] ---> number of pixels along Y
size[2] ---> number of pixels along Z
The image region in memory will be only
ImageType::SizeType size =
   image->GetBufferedRegion().GetSize();
Regards,
   Luis
-------------------------------
Radhika Sivaramakrishna wrote:
> Hi Luis,
> 
> Is there a procedure to return the size in each dimension? Similar to 
> GetSpacing()?
> 
> Radhika
> 
>  
> 
> -----------------------------------------------------
> 
> Confidentiality Notice.
> 
> This email message is for the sole use of the intended recipient(s) and 
> may contain confidential and privileged information. Any unauthorized 
> review, use, disclosure or distribution is prohibited. If you are not 
> the intended recipient, please contact the sender by reply email and 
> destroy all copies of the original message. If you are the intended 
> recipient, please be advised that the content of this message is subject 
> to access, review and disclosure by the sender's Email System Administrator.
>