ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Looks good. I actually figured this out as well, with slight modification. It turns out that I want these as a list of tuples, so:

def bool_img_to_idx(img):
     return zip(numpy.where(array==numpy.asarray(img).max())[0].tolist(),

My Intro Computer Science prof (who taught me Python) would be rolling over in his grave if he were dead.