how to write an color image by using 5 dominant colors

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?

2 Comments

how did you seperated dominant colour?
@Shiv srikakolum, what would you consider to be the dominant color in this image (ignoring the white background of course):
plotChromaticity
Please share your definition of it.

Sign in to comment.

Answers (1)

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

Categories

Find more on Images in Help Center and File Exchange

Asked:

on 16 Mar 2013

Commented:

on 24 Nov 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!