makecform('srgb2lab')

7 ビュー (過去 30 日間)
V
V 2011 年 12 月 4 日
コメント済み: Image Analyst 2017 年 4 月 7 日
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 件のコメント
Chandra Kurniawan
Chandra Kurniawan 2011 年 12 月 4 日
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 2011 年 12 月 4 日
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.

サインインしてコメントする。

回答 (2 件)

Image Analyst
Image Analyst 2011 年 12 月 4 日
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 2017 年 4 月 6 日
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 件のコメント
shafyn
shafyn 2017 年 4 月 7 日
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 2017 年 4 月 7 日
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).

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by