Image Processing Question: Color Reduction and Density?

9 vues (au cours des 30 derniers jours)
Teague
Teague le 30 Juin 2014
NOTE: I believe I posted this in the incorrect section earlier. Apologies. -----
I am trying to do the following:
Import image Reduce the number of colors that make up that image (only use red, green, blue) Vary density of red green and blue to replicate imported image
So I am essentially trying to replicate an image by using limited colors that are vary in density to match the real colors.
When I try color reduction through rgb2ind, this only matches the closest color (red, green, or blue) to the rgb rating of the scanned pixel. However, when this is done, it produces an image that is distinctly made up of red, green, and blue pixels. There has been no attempt of varying the density of these colored pixels to create the true color.
I am curious if the image processing toolbox has any tools for doing what I'm trying to achieve. I also realize that what I'm trying to do will reduce the resolution of the original photo.
Any help?

Réponses (1)

Image Analyst
Image Analyst le 30 Juin 2014
You're doing something wrong. rgb2ind() does not produce just pure red, pure green, and pure blue colors - it produces a continuum of colors with a variety of RGB values. If you don't think so, prove it with some demo code. How many colors are you telling it to derive?

Catégories

En savoir plus sur Convert Image Type dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by