ITK  4.8.0
Insight Segmentation and Registration Toolkit
SphinxExamples/src/Core/Common/GetTypeBasicInformation/Code.cxx
int main(int, char* [] )
{
typedef float MyType;
std::cout << "Min: " << itk::NumericTraits< MyType >::min() << std::endl;
std::cout << "Max: " << itk::NumericTraits< MyType >::max() << std::endl;
std::cout << "Zero: " << itk::NumericTraits< MyType >::Zero << std::endl;
std::cout << "ZeroValue: " << itk::NumericTraits< MyType >::ZeroValue()
<< std::endl;
std::cout << "Is -1 negative? "
std::cout << "Is 1 negative? "
<< std::endl;
std::cout << "One: "
<< std::endl;
std::cout << "Epsilon: "
<< std::endl;
std::cout << "Infinity: "
{
std::cout << " 0 == inf!" << std::endl;
return EXIT_FAILURE;
}
else
{
std::cout << "Good" << std::endl;
return EXIT_SUCCESS;
}
}