summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5aa7182)
raw | patch | inline | side by side (parent: 5aa7182)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Fri, 6 Apr 2007 21:44:52 +0000 (21:44 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Fri, 6 Apr 2007 21:44:52 +0000 (21:44 +0000) |
src/trace/filterset.cpp | patch | blob | history |
index e82ad4ed92c875e2a65b782c058a81ed061411a3..908985225aca001850fb908508478fec96197dab 100644 (file)
--- a/src/trace/filterset.cpp
+++ b/src/trace/filterset.cpp
{
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;
}