Plotting color separation of an RGB image
Mostrar comentarios más antiguos
Hi all,
I have two RGB photos of a beam of light on a wall that is separated into its colors by a prism. One can see the other picture shows more distinct and clear color separation in the horizontal direction, compared to the other, which is more smooth in nature. Question is, what would be the technique to plot this difference we see? I'm looking for a simple method to show on a single plot (or equivalent) that one is more gradual, and the other is more discrete. Any ideas?
Thanks in advance,
Tero

Respuesta aceptada
Más respuestas (1)
Walter Roberson
el 16 de Sept. de 2020
0 votos
(First step is to break that combined image that you posted into two images. I assume that your original source already has it as two images.)
Convert each image to HSV using rgb2hsv(), and take the mean hue of each column -- mean(HSV(:,:,1),1) .
Now plot the two mean_hue lines. The first of them shows an **increase* in Hue before the cliff, whereas the second of them shows a decrease in Hue in that section.
Quantifying the meaning of this might be difficult.
1 comentario
Tero
el 16 de Sept. de 2020
Categorías
Más información sobre Blue en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

