Ask Your Question
0

How to detect the pixels which colors have been modified ?

asked Feb 5 '15

begueradj gravatar image

I load a picture using OpenCV. I display it and colorize with the mouse cursor a cerain area of it and save the resulted picture. Does OpenCV allow to get the list of pixels which colors have been modified ?

Preview: (hide)

Comments

Yes simply find absolute difference of two images.http://docs.opencv.org/modules/core/doc/operations_on_arrays.html#abs

Balaji R gravatar imageBalaji R (Feb 5 '15)edit

Thank you, but the return value of that function is void, it does not list the pixels that are different

begueradj gravatar imagebegueradj (Feb 5 '15)edit

what function? Add your code!

Balaji R gravatar imageBalaji R (Feb 5 '15)edit

1 answer

Sort by » oldest newest most voted
0

answered Aug 9 '17

Ziri gravatar image

Use AbsDiff to find change

You also can use findContours to find positions in output image.

Hope it helps

Preview: (hide)

Comments

1

It is good that you want to help! But please do not dig some 2 years old Questions! Hope you will enjoy answering new questions which are more relevant!

Balaji R gravatar imageBalaji R (Aug 9 '17)edit

Question Tools

1 follower

Stats

Asked: Feb 5 '15

Seen: 258 times

Last updated: Aug 09 '17