No subject
Fri Oct 24 12:21:10 EDT 2014
template<unsigned int VImageDimension>
void
ImageBase<VImageDimension>
::SetRequestedRegion(DataObject *data)
{
ImageBase *imgData;
std::cout << "ImageBase::SetRequestedRegion DataObject = " << data <<
std::endl;
imgData = dynamic_cast<ImageBase*>(data);
if (imgData)
{
m_RequestedRegion = imgData->GetRequestedRegion();
}
else
{
// pointer could not be cast back down
std::cerr << "itk::ImageBase::SetRequestedRegion(DataObject*) cannot
cast "
<< typeid(data).name() << " to "
<< typeid(ImageBase*).name() << std::endl;
}
}
More information about the Insight-developers
mailing list