Help me how to convert RGB image to YUV
Mostrar comentarios más antiguos
I heard that there is a built in function in matlab that came with the image processing toolbox that convert RGB image to YUV can you help me to do that ?
Respuesta aceptada
Más respuestas (1)
Image Analyst
el 29 de Oct. de 2012
0 votos
No. There is one to LUV, not YUV. You can get the relationship between L and Y at easyRGB. You can find the formulas to go from sRGB to YUV at Wikipedia, but why do you want to use that anyway? Why not use YCbCr, or even better, HSI or LAB? What are you trying to do? Can you upload your image somewhere and tell us? How do you know book formulas are going to work for you and you don't need to use calibrated intensity units? Are you sure your RGB is sRGB? (The answer is no, you do not. For example the x-rite Color Checker Chart comes with a list of nominal RGB values for the standard color chips but you will never be able to get those with your camera unless you're extremely lucky with your sensor spectral sensitivities and your exposure.)
1 comentario
James
el 30 de Oct. de 2012
Categorías
Más información sobre Convert Image Type en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!