unknown exception error is coming when i am running the below program

asked 2018-01-15 23:15:16 -0500

addie gravatar image

import org.opencv.core.Core; import org.opencv.core.CvException; import org.opencv.core.CvType; import org.opencv.core.Mat; import org.opencv.core.Scalar; import org.opencv.core.Size; import org.opencv.imgcodecs.Imgcodecs; import org.opencv.imgproc.Imgproc;

public class Segment { public static void main(String[]args) { System.loadLibrary(Core.NATIVE_LIBRARY_NAME);

String file="C:\\Users\\trainee201809\\Downloads\\tiff\\subset_final.tif";
Mat src=Imgcodecs.imread(file);
Mat src1=new Mat(); 
Imgcodecs.imwrite("C:\\Users\\trainee201809\\Downloads\\opencv\\after\\after1.tif" ,src1);

} }

edit retag flag offensive close merge delete

Comments

1

src1 is empty ??

berak gravatar imageberak ( 2018-01-17 03:33:27 -0500 )edit