1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-16 22:35:51 +08:00

sfm module calls imread function, which is in imgcodecs module

This built correctly before because tests were run with the highgui module enabled.
The sfm module links against the features2d module, which brings in the highgui module as an optional target if enabled.
Through this path, imread was working correctly despite the file including the wrong header and not declaring its linking dependency.
This commit is contained in:
Ted Steiner
2019-02-19 19:56:32 -05:00
parent 412fd442b2
commit fe71b09f88
2 changed files with 2 additions and 1 deletions

View File

@@ -81,6 +81,7 @@ ocv_add_module(sfm
opencv_calib3d
opencv_features2d
opencv_xfeatures2d
opencv_imgcodecs
WRAP python
)

View File

@@ -18,7 +18,7 @@
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
// IN THE SOFTWARE.
#include <opencv2/highgui.hpp>
#include <opencv2/imgcodecs.hpp>
#include "libmv/base/vector_utils.h"
#include "libmv/correspondence/feature.h"