ITK
5.0.0
Insight Segmentation and Registration Toolkit
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
WikiExamples/Images/Size.cxx
#include "
itkSize.h
"
int
main(
int
,
char
*[])
{
itk::Size<2>
size;
// You will often get this type from an image type. That is, ImageType::SizeType rather than itk::Size<2> explicitly.
// Method 1 - set both components (size[0] and size[1]) to the same value (in this case, 0).
size.
Fill
(0);
std::cout << size << std::endl;
// Method 2 - set each component separately.
size[0] = 1;
size[1] = 2;
std::cout << size << std::endl;
return
EXIT_SUCCESS;
}
Generated on Sun Mar 24 2019 02:35:13 for ITK by
1.8.5