How to check color image linear or nonlinear?
10 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I have 24 bit RGB image. I want to check whether it is linear or nonlinear. How to check it.
2 comentarios
KSSV
el 13 de Feb. de 2017
How a image can be linear and non linear? What you are expecting actually?
DGM
el 17 de Ag. de 2024 a las 22:26
I'm guessing that the question is how to determine whether an RGB image is sRGB or linear RGB.
That would probably be indicated in the file's metadata. I'm assuming that in the absence of any explicit specification the image is treated as sRGB, but I'm not certain of exceptions. If we knew what the format was, we might be able to eliminate some possibilities.
That said, there is no file or even a specified format, so we can't really narrow it down much more than that.
Respuestas (1)
Image Analyst
el 18 de Ag. de 2024 a las 4:44
Editada: Image Analyst
el 18 de Ag. de 2024 a las 4:51
Image a gray scale step wedge with known reflectance percentages, like the Calibrite Color Checker Chart.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1754799/image.png)
Plot gray level vs. true, known reflectance value (see attachment) and see if it's a straight line going through the origin. It must go through the origin. If it's a straight line but does not go through the origin, then it's not linear.
Most digital cameras are not linear unless you specifically set the "gamma" to be 1. Some cameras (machine vision or scientific cameras) allow you to do that.
See this link for more information on camera linearization:
0 comentarios
Ver también
Categorías
Más información sobre Camera Calibration 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!