MATLAB Answers


how to find the colour difference between two image and display the diffrernce colour

Asked by chandra sattar on 28 Dec 2012


every one i am an fpga design engineer i would like know the how find the colour diffrernce between two frames or images and display the colour name , for example i have two image consist of 5 red balls +5 blue balls=total balls 10 , now my second image or frame consists of 5 red balls +4 bule =total 9 balls and , so i need code for diplayng the missing colur and position aslo if possible


Jan Simon
on 28 Dec 2012

What have you tried so far, which problems occurred and which kind of help do you want? It is unlikely, that anybody will post a running code, which solves your problem exactly. But the forum usually can assist you, when you post a specific problem, which concerns Matlab.

Please add the required information by editing the questions, becauser important details are neither comments nor answers. Thanks.

thanks jan simon , this is frist time i am posting , so i will clear post once again my question

1 Answer

Answer by Image Analyst
on 29 Dec 2012
Edited by Image Analyst
on 29 Dec 2012

I have a color difference m-file uploaded to File Exchange. It uses the well known and accepted Delta E color difference.

There is also a collection of good color files uploaded by Stephen Westland - a important leader in the color science field:

In addition, there are many tracking demos on MATLAB Central, such as these:


Join the 15-year community celebration.

Play games and win prizes!

Learn more
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!