I am developing multiple ROIs and classifying the existence of an object (object detection). Now I have some fairly overlapping ROIs and want to reduce the number and wanted to use NMS for that. But I dont really how to go about that. Is there any c++ code available for NMS implemented.