How to get the 10 color shaded images from a query image.

1 visualización (últimos 30 días)
Malini
Malini el 1 de Nov. de 2012
Comentada: Image Analyst el 10 de Dic. de 2015
Hi Team, For a given RGB query image , I've to find the 10 color shades(color shades represent object color in an image) by varying hue value for the same query image. For example, if i take a red colored rose as my query image then i've to create 10 rose images with different shades of red by varying hue of query image and save them. For any given query image , its 10 color shades need to be retrieved.
Could you please help me on this.
Regards, Malini

Respuesta aceptada

Image Analyst
Image Analyst el 1 de Nov. de 2012
You mean like this: http://labs.tineye.com/multicolr/? Maybe I don't know what you mean by the 10 shades because an aribtrary RGB image will have thousands of hundreds of thousands of colors in it, as many as one unique color for every pixel, not just 10. Perhaps you want to call rgb2ind()
Or maybe you just want to convert your image to hsv with rgb2hsv(), then add some random number to the hue channel, then inverse transform with hsv2rgb()? That would alter the hue of the image.
  8 comentarios
User404
User404 el 10 de Dic. de 2015
Hi Image Analyst,
I would like to achieve something like the following : http://labs.tineye.com/color/ in Matlab.
Any advice?
Thank you.
Image Analyst
Image Analyst el 10 de Dic. de 2015
I don't know how many colors you want. If you just want to replace each color pixel with the color from a predefined list of colors, then you can find the Euclidean distance of each (r,g,b) color to each of the predefined (r,g,b) colors and assign to the pixel the predefined color with the smallest distance.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Convert Image Type en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by