c++ - opencv imshow show only the image -
i've switched ubuntu windows opencv project , while displaying image using imshow
function image displayed other details x axis , y axis information , intensity values not shown in window.
the same code under ubuntu build works perfectly. here code:
#include <iostream> #include "opencv2/highgui/highgui.hpp" #include "opencv2/imgproc/imgproc.hpp" using namespace cv; int main() { cv::mat imgrgb = imread("c:\\users\\len\\documents\\project\\images\\1-11.jpg", cv_load_image_color); // check image read 3 channels image , not empty cv_assert(imgrgb.channels() == 3); if (imgrgb.empty()) { cout << "image empty. specify correct path" << endl; return -1; } cv::cvtcolor(imgrgb, img, cv_bgr2gray); namedwindow("test", cv::window_autosize); imshow("test", imgrgb); waitkey(0); }
so, how can display intensity values along current x , y axis information?
Comments
Post a Comment