I am working with java usign opencv. Basically I want to read and display an image using opencv functions. I wanted to translate the next code from c++ to java but i dont find the same opencv functions for java.
include "opencv2/highgui/highgui.hpp"
include "iostream"
using namespace cv; using namespace std; int main(){ Mat img = imread("lena.png", CV_LOAD_IMAGE_COLOR); if (img.empty()){ cout << "Cannot load image!" << endl; return -1; } namedWindow("image", CV_WINDOW_AUTOSIZE); imshow("image", img); waitKey(0); return 0; }