Ask Your Question
0

Opencv 3.0 - erode is not a member of gpu namespace

asked 2013-09-26 22:22:19 -0600

Compvis gravatar image

updated 2013-09-27 06:36:42 -0600

Andrey Pavlenko gravatar image

hi,

After build Opencv 3.0 from source. I successffuly test MOG2. When try to implement erode function. It rises an error: erode is not a member of gpu namespace

I think this a bug.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-09-27 02:13:29 -0600

Vladislav Vinogradov gravatar image

The gpu module was redesigned in OpenCV 3.0. It was splitted onto several modules, it was renamed to cuda and gpu:: namespace was renamed to cuda::. All filters were moved to opencv_cudafilters module. Also all single-function filters were removed, now only cv::Ptr<cv::cuda::Filter> object can be used:

cv::Ptr<cv::cuda::Filter> erode = cv::cuda::createMorphologyFilter(cv::MORPH_ERODE, src.type(), kernel);
erode->apply(src, dst);
edit flag offensive delete link more

Comments

thanks, it works fine

Compvis gravatar imageCompvis ( 2013-10-02 00:58:01 -0600 )edit

Question Tools

Stats

Asked: 2013-09-26 22:22:19 -0600

Seen: 1,753 times

Last updated: Sep 27 '13