Skip to content
Snippets Groups Projects
Commit a8d18779 authored by Antoine Regimbeau's avatar Antoine Regimbeau
Browse files

BUG : do not set signed spacing then direction or be careful as the direction must be signed

parent df62c35b
No related branches found
No related tags found
No related merge requests found
......@@ -184,7 +184,10 @@ VectorDataToMapFilter<TVectorData, TImage>
// Set spacing and origin
outputPtr->SetSignedSpacing(m_Spacing);
outputPtr->SetOrigin(m_Origin);
outputPtr->SetDirection(m_Direction);
// outputPtr->SetDirection(m_Direction);
// As the direction cannot be changed in this filter there is no need to set
// the direction in the output image. Moreover, setting the direction to
// identity no that we enforce positive spacing leads to incoherences
itk::MetaDataDictionary& dict = outputPtr->GetMetaDataDictionary();
itk::EncapsulateMetaData<std::string> (dict, MetaDataKey::ProjectionRefKey,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment