Skip to content

Commit

Permalink
[FIX] Remvoed normalization of the Gaussian filters used to compute t…
Browse files Browse the repository at this point in the history
…he gradietns
  • Loading branch information
rlagneau committed Aug 24, 2023
1 parent 0f8031c commit 3773530
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/core/src/image/vpCannyEdgeDetection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ void
vpCannyEdgeDetection::initGaussianFilters()
{
m_fg.resize(1, (m_gaussianKernelSize + 1)/2);
vpImageFilter::getGaussianKernel(m_fg.data, m_gaussianKernelSize, m_gaussianStdev, true);
vpImageFilter::getGaussianKernel(m_fg.data, m_gaussianKernelSize, m_gaussianStdev, false);
m_fgDg.resize(1, (m_gaussianKernelSize + 1)/2);
vpImageFilter::getGaussianDerivativeKernel(m_fgDg.data, m_gaussianKernelSize, m_gaussianStdev, true);
vpImageFilter::getGaussianDerivativeKernel(m_fgDg.data, m_gaussianKernelSize, m_gaussianStdev, false);
}

// // Detection methods
Expand Down

0 comments on commit 3773530

Please sign in to comment.