Ask Your Question

phamnamlong's profile - activity

2016-07-12 06:53:00 -0600 received badge  Famous Question (source)
2015-05-09 04:52:38 -0600 received badge  Notable Question (source)
2014-06-30 07:20:58 -0600 received badge  Popular Question (source)
2014-02-26 05:46:11 -0600 received badge  Nice Question (source)
2014-02-20 11:47:45 -0600 received badge  Student (source)
2013-05-12 22:54:16 -0600 received badge  Supporter (source)
2013-05-12 22:54:15 -0600 received badge  Critic (source)
2013-05-02 07:44:32 -0600 received badge  Editor (source)
2013-05-02 07:43:34 -0600 asked a question imshow equivalence in Java

How do you do imshow in the Java binding of OpenCv ? I cannot find any reference of it in Highgui. The example below shows the use of imshow as in C++. I would like to ask for the equivalence in Java.

#include <cv.h>
#include <highgui.h>

using namespace cv;

int main( int argc, char** argv){
 char* imageName = argv[1];
 Mat image;
 image = imread( imageName, 1 );

 if( argc != 2 || !image.data ) {
   printf( " No image data \n " );
   return -1;
 }
 namedWindow( imageName, CV_WINDOW_AUTOSIZE );
 imshow( imageName, image );
 waitKey(0);
 return 0;
}