Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Is there any problem in using the same src and dst image in filtering functions?

Filtering operations can't be done in the same image since the convolution needs points at already processed positions right? And if I update the same image I get that i'm convolutiong using filtered values instead of original ones. The question is: are the opencv functions like GaussianBlur(.), blur(.), medianBlur(.), bilateralBlur(.) and so on safe to this issue? (doeas opencv create a temporary second matrix internally?) In other words Can I set the "src" and "dst" parameters to the same Mat reference?

ps. I'm writing in C++