[Insight-users] Image dimension/subimage
Matthias Dodt
matthias.dodt at mdc-berlin.de
Fri Oct 2 10:00:35 EDT 2009
Hi again;-)!
Okay..thing i got it - guess it should be something like
//get source image
RegionType largestRegion = this->GetInput()->GetLargestPossibleRegion();
typedef typename RegionType::SizeType ImageSize;
ImageSize size = largestRegion.GetSize();
std::cout << size[0] << "," << size[1] << std::endl;
To adress the second question:
Actually i'll have to create new subimages of a cerain size- so just
skip the second question;-). Anyway subimaging should be done by
"Regions" i guess...
thanks!
greetings
mat
> Hi ITK users!
>
> I got two simple questions:
>
> 1. How do i get the pixel resolution of an image?
> 2. I want to process sub-images of my image seperately by an
> algorithm. Is there an easy way to cut sub-images out of a source image?
>
> thanks in advance!
>
> greetings
>
> mat
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.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
More information about the Insight-users
mailing list