makecform('srgb2lab')

7 visualizaciones (últimos 30 días)
V
V el 4 de Dic. de 2011
Comentada: Image Analyst el 7 de Abr. de 2017
Hello again,
I tried the syntax - srgb2lab - and it doesn't convert the colour space. I received an error message: >> C = makecform('srgb2lab') ??? Undefined function or variable 'makecform'.
Anyone knows how to solve this problem? Many Thanks, v
  5 comentarios
Chandra Kurniawan
Chandra Kurniawan el 4 de Dic. de 2011
Try to type 'help makecform' in the command window
If the screen display message : makecform not found
Then your machine cannot recognize command 'makecform'
Walter Roberson
Walter Roberson el 4 de Dic. de 2011
Image Processing might be installed, but is it licensed?
Also, what MATLAB version are you using? If it is sufficiently old, that routine might not yet have existed.

Iniciar sesión para comentar.

Respuestas (2)

Image Analyst
Image Analyst el 4 de Dic. de 2011
If you don't have the Image Processing Toolbox licensed, you can do it yourself with these equations: http://www.easyrgb.com/index.php?X=MATH

shafyn
shafyn el 6 de Abr. de 2017
Hello,
I have digital camera images (in RGB form) and I need to convert them to Lab values. I need to know the values of each L, a, and b.It is the image of leaf decay and instead of using a colorimeter to get the Lab values, I want to directly convert the RGB values to the Lab. I want the value of each L, a, and b be displayed when I run the script. Could anyone help me with the script and command on how to do this?
Really appreciate your help. Thank you very much. Siti, Uni of Birmingham, UK
  3 comentarios
shafyn
shafyn el 7 de Abr. de 2017
Thank you very much. Yes I will need to do some sort of 'calibration curve' where I will plot the Lab values of a colour chart from the colourimeter against the Lab values of the same colour chart image from RGB. From there I can use the curve to predict the Lab values (colourimeter) for other digital camera images.
Image Analyst
Image Analyst el 7 de Abr. de 2017
No plotting needs to be done. What you need to do is a least squares regression to find a model to give estimated LAB values from images. Note, you cannot use that transform that you developed for that camera and that lighting condition to other cameras like you said. Each time you change either the camera or the lighting (geometry, color, intensity) you will need to recompute a new RGB-to-LAB transform (because your RGB values will now be different).

Iniciar sesión para comentar.

Categorías

Más información sobre Image Processing Toolbox en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by