Ask Your Question
0

How to detect the pixels which colors have been modified ?

asked 2015-02-05 09:27:20 -0600

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 ?

edit retag flag offensive close merge delete

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 ( 2015-02-05 09:42:13 -0600 )edit

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

begueradj gravatar imagebegueradj ( 2015-02-05 09:49:41 -0600 )edit

what function? Add your code!

Balaji R gravatar imageBalaji R ( 2015-02-05 11:25:28 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-08-09 04:10:08 -0600

Ziri gravatar image

Use AbsDiff to find change

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

Hope it helps

edit flag offensive delete link more

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 ( 2017-08-09 04:28:09 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2015-02-05 09:27:20 -0600

Seen: 247 times

Last updated: Aug 09 '17