I'm trying to find the centroids of the connected components using the java version of OpenCV (Java 8 and OpenCV 3.2.0.1). However I can't find a detailed documentation on how to exploit the returned variables. I found this post which explains how the data is structured, but it is for python.
How to use openCV's connected components with stats in python?
I would enjoy having such an explanation for the java one. For exemple, doing centroids.get(0, 0);
in Java returns an array with NaN inside even if centroids.rows();
returns 2.