Ask Your Question

Revision history [back]

You can use the ROI (Region Of Interest) doc. It create a new header and you can directly manipulate this image, without copy. You don't need to set zeros outside the ROI, if you manipulate the ROI, it's like you're manipulating a new image of the size specified in the ROI, with image's original values.