Code

remove forced blurring from edge detection - tracing removes speckles anyway
authorbuliabyak <buliabyak@users.sourceforge.net>
Fri, 6 Apr 2007 21:44:52 +0000 (21:44 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Fri, 6 Apr 2007 21:44:52 +0000 (21:44 +0000)
src/trace/filterset.cpp

index e82ad4ed92c875e2a65b782c058a81ed061411a3..908985225aca001850fb908508478fec96197dab 100644 (file)
@@ -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;
 }