Until now, the previous versions of OpenCV JAVA API offered get()
and put()
methods in order to fetch and manipulate the individual pixels in a Mat image. But in OpenCV 3.0.0-1.1 Java API those methods are deprecated. So how can individual pixels be manipulated in this version.
Here is a list of deprecated methods: http://bytedeco.org/javacpp-presets/opencv/apidocs/deprecated-list.html
When I'm using the put()
method in HIPI v2.0 (which supports latest OpenCV API), I'm getting the following error:
What can I do to change particular pixels (given the indices)?