The sea of stars
The sea of stars

Reputation: 1

How to compare only one specific color of two picture using imagemagick?

magick compare will show all the diffrence of 2 picture, but how to specify magick to compare only one color in picture.

for example, only compare blue area in 2 picture

I try check the option of magick compare command, but can't find which option can be used for https://imagemagick.org/script/compare.php

Upvotes: 0

Views: 41

Answers (1)

fmw42
fmw42

Reputation: 53089

To process only a given color in ImageMagick compare, you need to create a mask for that color. Then use the read mask compare technique. See https://imagemagick.org/discourse-server/viewtopic.php?f=4&t=31053

Upvotes: 1

Related Questions