We are about to switch to a new forum software. Until then we have removed the registration on this forum.
OpenCV opencv; Mat A = new Mat(4,4,CvType.CV_64F);
Then how to access A to set/retrieve specific values from certain indexes?
Thanks
To insert data it would be something like this:
import gab.opencv.*; import org.opencv.core.Mat; import org.opencv.core.CvType; int row = 0, col = 0; int data[] = { 0, -1, 0, -1, 5, -1, 0, -1, 0 }; Mat M = new Mat(3, 3, CvType.CV_32S ); M.put( row, col, data );
As explained here.
Use this to retrieve information from specific index:
M.get( row , col );
from this trick referecence
Answers
To insert data it would be something like this:
As explained here.
Use this to retrieve information from specific index:
M.get( row , col );
from this trick referecence