MATLAB Answers


how to write an color image by using 5 dominant colors

Asked by preet
on 16 Mar 2013

after extracting 5 dominant color in r, g ,b component from an image . i want to display that image with these dominant color.

hw will do it?


1 Answer

Answer by Image Analyst
on 16 Mar 2013

Use imshow() to display, and imwrite() to write an image to a disk file.


Discover MakerZone

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

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!