[Insight-users] Creating itkHistogramImageToImageMetric object fails
    Maarten Beek 
    beekmaarten at yahoo.com
       
    Wed Apr 21 10:41:51 EDT 2010
    
    
  
Why does the following code not compile?
const unsigned int Dimension = 3;
typedef double ImagePixelType;
typedef itk::Image<ImagePixelType, Dimension> ImageType;
typedef itk::HistogramImageToImageMetric<ImageType,ImageType> HistType;
HistType::Pointer Metric = HistType::New();
error C2440: 'initializing' : cannot convert from 'itk::Object::Pointer' to 'itk::SmartPointer<TObjectType>'
      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100421/23156284/attachment.htm>
    
    
More information about the Insight-users
mailing list