Ask Your Question

Revision history [back]

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

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;

image description

  • 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!

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

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;

image description

/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!