Skip to content
Snippets Groups Projects
Commit 81f846bd authored by Otmane Lahlou's avatar Otmane Lahlou
Browse files

COMP : fix error

parent 60741f43
Branches
Tags
No related merge requests found
...@@ -130,11 +130,11 @@ OptResampleImageFilter<TInputImage, TOutputImage, TDeformationField> ...@@ -130,11 +130,11 @@ OptResampleImageFilter<TInputImage, TOutputImage, TDeformationField>
outputPtr->SetLargestPossibleRegion(region); outputPtr->SetLargestPossibleRegion(region);
// Expose the input metadata to the output // // Expose the input metadata to the output
itk::MetaDataDictionary& dict = const_cast<InputImageType *>(this->GetInput())->GetMetaDataDictionary(); // itk::MetaDataDictionary& dict = const_cast<InputImageType *>(this->GetInput())->GetMetaDataDictionary();
std::string projectionRef = this->GetInput()->GetProjectionRef(); // std::string projectionRef = this->GetInput()->GetProjectionRef();
itk::EncapsulateMetaData<std::string>(dict, MetaDataKey::ProjectionRefKey, projectionRef); // itk::EncapsulateMetaData<std::string>(dict, MetaDataKey::ProjectionRefKey, projectionRef);
outputPtr->SetMetaDataDictionary(dict); // outputPtr->SetMetaDataDictionary(dict);
} }
template <class TInputImage, class TOutputImage, class TDeformationField> template <class TInputImage, class TOutputImage, class TDeformationField>
...@@ -194,8 +194,7 @@ OptResampleImageFilter<TInputImage, TOutputImage, TDeformationField> ...@@ -194,8 +194,7 @@ OptResampleImageFilter<TInputImage, TOutputImage, TDeformationField>
{ {
this->SetOutputOrigin ( image->GetOrigin() ); this->SetOutputOrigin ( image->GetOrigin() );
this->SetOutputSpacing ( image->GetSpacing() ); this->SetOutputSpacing ( image->GetSpacing() );
this->SetOutputDirection ( image->GetDirection() ); this->SetOutputIndex ( image->GetLargestPossibleRegion().GetIndex() );
this->SetOutputStartIndex ( image->GetLargestPossibleRegion().GetIndex() );
this->SetOutputSize ( image->GetLargestPossibleRegion().GetSize() ); this->SetOutputSize ( image->GetLargestPossibleRegion().GetSize() );
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment