summaryrefslogtreecommitdiffstats
path: root/src/trace
diff options
context:
space:
mode:
Diffstat (limited to 'src/trace')
-rw-r--r--src/trace/filterset.cpp8
1 files changed, 1 insertions, 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;
}