copy small image in big image
i try to copy a small image stored in a Mat to a bigger image stored in a Mat. but i always end with a black big image. here is my code: JAVA
Mat no1 = Highgui.imread(Environment.getExternalStorageDirectory().getPath() + "/Pictures/no1.jpg");
Mat sudokuGrid = Highgui.imread(Environment.getExternalStorageDirectory().getPath() + "/Pictures/emptysudoku.jpg");
no1.copyTo(sudokuGrid.submat(new Rect(60 ,60 ,no1.width(), no1.height())));
Edit: When i use the code in C it works fine
small_image.copyTo(big_image(cv::Rect(x,y,small_image.cols, small_image.rows)));
maybe you don't show enough code here. what is no1 ? a Mat has cols(), not width(). are you sure, both images have the same format/type() ?
i added how i load the images
i found a solution. will post it later :) ty berak!