<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&lt;ImagePixelType, Dimension&gt; ImageType;<br>typedef itk::HistogramImageToImageMetric&lt;ImageType,ImageType&gt; HistType;<br>HistType::Pointer Metric = HistType::New();<br><br>error C2440: 'initializing' : cannot convert from 'itk::Object::Pointer' to 'itk::SmartPointer&lt;TObjectType&gt;'<br></div>
</div><br>

      </body></html>