MATLAB Answers


How can i study the symmetry in color with matlab?

Asked by Tomas
on 8 Nov 2012
Latest activity Commented on by Image Analyst
on 22 Nov 2014


how can I decide that an image is symmetric or asymmetric in color after dividing it into two parts vertically (the right part and the left part)? thanks


1 Answer

Answer by Image Analyst
on 8 Nov 2012

You could chop the image in half, call fliplr() to flip one of the halves, then check similarity with SSIM (See wikipedia) or something similar like PSNR.


There is an ssim() function in the Image Processing Toolbox. Or you cuold look for published articles on it here:

I haven't ssim() function in MATLAB 2013. Can you tell me some other method to implement this in Matlab

I did , sort of - did you see the link I gave you? That will have the best methods by people who have studied it intensively. Maybe my guess of SSIM is not even the best way.

If you still want ssim(), upgrade to the latest version of MATLAB, or program it yourself with information from

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!