First time here? Check out the FAQ!
answered 2013-02-21 03:18:01 -0600
temp_frame and gray_frame are pointing to the same memory (temp_frame=gray_frame). You have to copy memory instead.