Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Equivalent OpenCV Java Code to this C++ Code

can anybody tell me the correct java code for this c++ code snippet:

 output.at<cv::Vec4b>(x, y) = target.at<cv::Vec4b>(dx, dy);

I have tried this java code and they are displacing pixel but not showing image clearly :

output.put(x, y, target.get(dx, dy));
click to hide/show revision 2
retagged

Equivalent OpenCV Java Code to this C++ Code

can anybody tell me the correct java code for this c++ code snippet:

 output.at<cv::Vec4b>(x, y) = target.at<cv::Vec4b>(dx, dy);

I have tried this java code and they are displacing pixel but not showing image clearly :

output.put(x, y, target.get(dx, dy));