Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I think that the "Best way not to have to copy a Mat back into an OutputArray" is not using OutputArray in the first place. InputArray and OutputArray are used by OpenCV functions that can work with various different types. For example output can be either vector<point> or Mat. OpenCV users can simply pass Mat to such function. You shouldn't use those InputArray or OutputArray unless you have some kind of polymorphic behavior that you must implement. It seems to me that this is not the case.