Ask Your Question

Revision history [back]

temp_frame and gray_frame are pointing to the same memory (temp_frame=gray_frame). You have to copy memory instead.