Ask Your Question

Revision history [back]

You can just copy the vehicles using cv::copy. If A is your full (unblurred Image), B is the blurred version, and a car region is defined from col c_1 to c_2 and row range r_1,r_2, you can copy the car by

A.rowrange(r_1,r_2).colrange(c_1,c_2).copyTo(B.rowrange(r_1,r_2).colrange(c_1,c_2))