how will be mean brightness of color image will be formulated in matlab
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Poonam
el 9 de Jul. de 2015
Respondida: Thorsten
el 9 de Jul. de 2015
color image is of three channels, so how to calculate mean brightness of the image Do i need to separate each channel of color image and then calculate mean of the brightness say in LAB space i need to calculate mean of only L which represent luminance or brightness of image
0 comentarios
Respuesta aceptada
Thorsten
el 9 de Jul. de 2015
If you have an Lab image as a 3D matrix with planes L, a, b, just use
meanbrightness = mean2(Lab(:,:,1))
If you have an RGB image, you can convert it to Lab using
RGB = imread('peppers.png');
cform = makecform('srgb2lab');
Lab = applycform(RGB, cform);
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Image Processing Toolbox 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!