Skip to content
Snippets Groups Projects
Commit 37b27427 authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

BUG: compute gradient in index space since resolution is not read from image

parent 7cf3d06d
No related branches found
No related tags found
No related merge requests found
...@@ -187,7 +187,9 @@ protected: ...@@ -187,7 +187,9 @@ protected:
/** Destructor */ /** Destructor */
~GenericRoadExtractionFilter() {} ~GenericRoadExtractionFilter() {}
/** Prepare main computation method */ /** Prepare main computation method
* Note : this function isn't called
*/
void BeforeGenerateData(void); void BeforeGenerateData(void);
/** Main computation method */ /** Main computation method */
......
...@@ -113,6 +113,7 @@ GenericRoadExtractionFilter<TInputImage, TOutputPath> ...@@ -113,6 +113,7 @@ GenericRoadExtractionFilter<TInputImage, TOutputPath>
m_GradientFilter->SetInput(m_SquareRootImageFilter->GetOutput()); m_GradientFilter->SetInput(m_SquareRootImageFilter->GetOutput());
/** Sigma calculated with the alpha and image resolution parameters */ /** Sigma calculated with the alpha and image resolution parameters */
m_GradientFilter->SetSigma(static_cast<SigmaType>(m_Alpha * (1.2 / m_Resolution + 1.))); m_GradientFilter->SetSigma(static_cast<SigmaType>(m_Alpha * (1.2 / m_Resolution + 1.)));
m_GradientFilter->SetUseImageDirection(false);
m_NeighborhoodScalarProductFilter->SetInput(m_GradientFilter->GetOutput()); m_NeighborhoodScalarProductFilter->SetInput(m_GradientFilter->GetOutput());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment