Ask Your Question

where is the PatchGenerator in opencv2.4.2

asked 2012-07-26 21:08:10 -0500

hujilin1229 gravatar image

hi every one, I am using the new version of opencv2.4.2 recently for its new features. However, I met something troublesome here. In the previous work, I used the class of PatchGenerator which is included in opencv2.3.1.And when I run my work using opencv2.4.2, it appears some mistake, which said "PatchGenerator is not a cv type". I posted here for your kind help.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2012-08-09 14:34:39 -0500


PatchGenerator was moved to the legacy module in OpenCV 2.4.2. So you should include the header of this module to use PatchGenerator:

#include <opencv2/legacy/legacy.hpp>
edit flag offensive delete link more



Why was it moved to the legacy module? I think it is a valuable tool.

SR gravatar imageSR ( 2013-02-23 08:37:35 -0500 )edit
Login/Signup to Answer

Question Tools


Asked: 2012-07-26 21:08:10 -0500

Seen: 924 times

Last updated: Aug 09 '12