1 | initial version |
Mat object has copy constructor that allows to set region of interest. Mat class use reference counting approach and does not copy this region, but just adds reference to the same data. Pass such Mat to feature detector and you've got what you want.