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

BUG : as image now have an unsigned spacing and a signed direction, we need to...

BUG : as image now have an unsigned spacing and a signed direction, we need to set spacing AND direction parameters if using itk filter, here we use the itk gradient filter
parent a8d18779
No related branches found
No related tags found
No related merge requests found
......@@ -60,6 +60,7 @@ int otbHistogramOfOrientedGradientCovariantImageFunction(int itkNotUsed(argc), c
GradientFilterType::Pointer gradient = GradientFilterType::New();
gradient->SetInput(reader->GetOutput());
gradient->SetUseImageSpacing(false);
gradient->SetUseImageDirection(false);
gradient->Update();
// Instantiating object
......
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