Image Processing Question: Color Reduction and Density?
9 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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?
0 comentarios
Respuestas (1)
Image Analyst
el 30 de Jun. de 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?
0 comentarios
Ver también
Categorías
Más información sobre Convert Image Type en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!