refactored Morphology Filters

This commit is contained in:
Vladislav Vinogradov
2013-04-29 16:03:16 +04:00
parent 12ae11e2ff
commit 5720eaf354
7 changed files with 503 additions and 409 deletions

View File

@@ -746,10 +746,12 @@ TEST(erode)
d_src.upload(src);
gpu::erode(d_src, d_dst, ker, d_buf);
Ptr<gpu::Filter> erode = gpu::createMorphologyFilter(MORPH_ERODE, d_src.type(), ker);
erode->apply(d_src, d_dst);
GPU_ON;
gpu::erode(d_src, d_dst, ker, d_buf);
erode->apply(d_src, d_dst);
GPU_OFF;
}
}