diff --git a/matplotlibcpp.h b/matplotlibcpp.h index d95d46a..5fe7007 100644 --- a/matplotlibcpp.h +++ b/matplotlibcpp.h @@ -957,6 +957,11 @@ inline void imshow(const float *ptr, const int rows, const int columns, const in detail::imshow((void *) ptr, NPY_FLOAT, rows, columns, colors, keywords, out); } +inline void imshow(const double *ptr, const int rows, const int columns, const int colors, const std::map &keywords = {}, PyObject** out = nullptr) +{ + detail::imshow((void *) ptr, NPY_DOUBLE, rows, columns, colors, keywords, out); +} + #ifdef WITH_OPENCV void imshow(const cv::Mat &image, const std::map &keywords = {}) {