CUDNN, OpenCV, compile warning: “warning: overloaded virtual function “cv:: …” is only partially overridden in class"

asked 2020-07-06 21:44:37 -0600

updated 2020-07-07 16:59:27 -0600

So i am able to compile and execute this C++ program,

#include <cudnn.h>
#include <iostream>
#include <opencv2/opencv.hpp>

cv::Mat load_image(const char* image_path){
    cv::Mat image = cv::imread(image_path);
    image.convertTo(image, CV_32FC3);
    cv::normalize(image, image, 0, 1, cv::NORM_MINMAX);
    return image;
}

int main(void){
    cudnnHandle_t cudnn;
    cudnnCreate(&cudnn);
    cv::Mat image = load_image("conure.jpg");
    return 0;
}

However i get these warnings;

/usr/include/opencv4/opencv2/stitching/detail/warpers.hpp(213): warning: overloaded virtual function "cv::detail::PlaneWarper::buildMaps" is only partially overridden in class "cv::detail::AffineWarper"

/usr/include/opencv4/opencv2/stitching/detail/warpers.hpp(213): warning: overloaded virtual function "cv::detail::PlaneWarper::warp" is only partially overridden in class "cv::detail::AffineWarper"

/usr/include/opencv4/opencv2/stitching/detail/blenders.hpp(100): warning: overloaded virtual function "cv::detail::Blender::prepare" is only partially overridden in class "cv::detail::FeatherBlender"

/usr/include/opencv4/opencv2/stitching/detail/blenders.hpp(127): warning: overloaded virtual function "cv::detail::Blender::prepare" is only partially overridden in class "cv::detail::MultiBandBlender"

/usr/include/opencv4/opencv2/stitching/detail/warpers.hpp(213): warning: overloaded virtual function "cv::detail::PlaneWarper::buildMaps" is only partially overridden in class "cv::detail::AffineWarper"

/usr/include/opencv4/opencv2/stitching/detail/warpers.hpp(213): warning: overloaded virtual function "cv::detail::PlaneWarper::warp" is only partially overridden in class "cv::detail::AffineWarper"

/usr/include/opencv4/opencv2/stitching/detail/blenders.hpp(100): warning: overloaded virtual function "cv::detail::Blender::prepare" is only partially overridden in class "cv::detail::FeatherBlender"

/usr/include/opencv4/opencv2/stitching/detail/blenders.hpp(127): warning: overloaded virtual function "cv::detail::Blender::prepare" is only partially overridden in class "cv::detail::MultiBandBlender"
  • OpenCV 4.2.0
  • Nvidia Jetson Xavier NX - ARM64, Tegra194
  • CUDA 10.2
  • CUDNN 8.0

I do not want to ignore these warnings, can anybody help? Thanks!

edit retag flag offensive close merge delete

Comments

can you please remove the screenshot and give us the error msgs as TEXT ? thank you.

berak gravatar imageberak ( 2020-07-07 02:05:04 -0600 )edit

Done, sorry about that.

MostafaTheReal gravatar imageMostafaTheReal ( 2020-07-07 17:00:19 -0600 )edit