From baef789f08d90d7b374cb7a297710ac7655099e7 Mon Sep 17 00:00:00 2001 From: buliabyak Date: Fri, 6 Apr 2007 21:44:52 +0000 Subject: [PATCH] remove forced blurring from edge detection - tracing removes speckles anyway --- src/trace/filterset.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/trace/filterset.cpp b/src/trace/filterset.cpp index e82ad4ed9..908985225 100644 --- a/src/trace/filterset.cpp +++ b/src/trace/filterset.cpp @@ -354,18 +354,12 @@ grayMapCanny(GrayMap *gm, double lowThreshold, double highThreshold) { if (!gm) return NULL; - GrayMap *gaussGm = grayMapGaussian(gm); - if (!gaussGm) - return NULL; - /*gaussGm->writePPM(gaussGm, "gauss.ppm");*/ - GrayMap *cannyGm = grayMapSobel(gaussGm, lowThreshold, highThreshold); + GrayMap *cannyGm = grayMapSobel(gm, lowThreshold, highThreshold); if (!cannyGm) return NULL; /*cannyGm->writePPM(cannyGm, "canny.ppm");*/ - gaussGm->destroy(gaussGm); - return cannyGm; } -- 2.30.2