[JAVA] Extreme points in contours
Hi everyone!
I need to find the coordinate of the top point of the largest contour in the scene. I can find the largest contour but I can't find info about extreme points in java. This is what I found in Python:
extTop = tuple(c[c[:, :, 1].argmin()][0])
extBot = tuple(c[c[:, :, 1].argmax()][0])
Can someone help me to understand how to do that in Java?
Thank you!
sorry, but the code you show is numpy not from opencv or even c++
Yes sorry, it was Python, I got confused...Do you know how to find the extreme points of a contours?