1 | initial version |
yes, unfortunately this function is missing from the java interface.
"Is there any technical reason for minMaxIdx to be excluded"
yes. the wrapper mechanism can't handle raw c++ pointers, thus it omits any function like that.
"minMaxLoc is available"
yes, there was a manual workaround made special for this (it's quite a kludge, imho)
"but this function is limited to 2-dimensionnal arrays."
you still can get the index from the Point, like
int idx = p.x + p.y * img.rows;
2 | No.2 Revision |
yes, unfortunately this function is missing from the java interface.
"Is there any technical reason for minMaxIdx to be excluded"
yes. the wrapper mechanism can't handle raw c++ pointers, thus it omits any function like that.
"minMaxLoc is available"
yes, there was a manual workaround made special for this (it's quite a kludge, imho)
"but this function is limited to 2-dimensionnal arrays."
you still can get the index from the Point,
likelike:
Core.MinMaxLocResult mm = Core.minMaxLoc(img); Point p = mm.maxLoc; int idx = p.x + p.y *
img.rows;img.rows;
3 | No.3 Revision |
yes, unfortunately this function is missing from the java interface.
"Is there any technical reason for minMaxIdx to be excluded"
yes. the wrapper mechanism can't handle raw c++ pointers, thus it omits any function like that.
"minMaxLoc is available"
yes, there was a manual workaround made special for this (it's quite a kludge, imho)
"but this function is limited to 2-dimensionnal arrays."
you still can get the index from the Point, like:
Core.MinMaxLocResult mm = Core.minMaxLoc(img);
Point p = mm.maxLoc;
int idx = p.x + p.y * img.rows;
img.cols;