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
i think came c++ background. should use new
operator while creating new objects. use following code:
imgproc.createclahe(40, new size(8, 8));
Comments
Post a Comment