ITK  5.0.0
Insight Segmentation and Registration Toolkit
WikiExamples/SimpleOperations/GetNameOfClass.cxx
#include <itkImage.h>
int main(int, char*[])
{
using ImageType = itk::Image<unsigned char, 2>;
ImageType::Pointer image = ImageType::New();
std::cout << "image is type: " << image->GetNameOfClass() << std::endl;
return EXIT_SUCCESS;
}