java - Need solution for my error while implementing clahe of opencv in javadoc -


i've tried use clahe of opencv 3.0.0 in javadoc. used code

public class clahe {   public static void main(string args[])throws ioexception{         // loading opencv core library       system.loadlibrary( core.native_library_name );        // reading image file , storing in matrix object       mat src = imgcodecs.imread("grayscaleiskemik.jpeg");        // creating empty matrix store result       mat dst = new mat();        imgproc.createclahe(40, size(8, 8)); //line 26        // writing image       imgcodecs.imwrite("clahe.jpeg", dst);   } } 

but got error in line 26. says

enter image description here

i think came c++ background. should use new operator while creating new objects. use following code:

imgproc.createclahe(40, new size(8, 8));  

Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -