<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div>Why does the following code not compile?<br><br>const unsigned int Dimension = 3;<br>typedef double ImagePixelType;<br>typedef itk::Image<ImagePixelType, Dimension> ImageType;<br>typedef itk::HistogramImageToImageMetric<ImageType,ImageType> HistType;<br>HistType::Pointer Metric = HistType::New();<br><br>error C2440: 'initializing' : cannot convert from 'itk::Object::Pointer' to 'itk::SmartPointer<TObjectType>'<br></div>
</div><br>
</body></html>