Ask Your Question

Revision history [back]

What is exactly that you want to accomplish? If you want to display only the ROIs, I would suggest you to:

  1. Create a blank new output image
  2. For each ROI create a mask image from the ROI and use copy() with the mask as 3rd argument to copy the ROI from the input image to the output.

As Steven pointed out, the C++ interface makes everything better.