template< typename TImage, unsigned int VDimension >
void CheckIfDimensionIsTheSame( const TImage* const )
{
}
int main( int, char* [] )
{
const unsigned int Dimension = 2;
typedef unsigned char PixelType;
ImageType::Pointer image = ImageType::New();
CheckIfDimensionIsTheSame< ImageType, 2 >( image.GetPointer() );
CheckIfDimensionIsTheSame< ImageType, ImageType2::ImageDimension >( image.GetPointer() );
return EXIT_SUCCESS;
}