MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   资料存档 (https://www.labfans.com/bbs/forumdisplay.php?f=72)
-   -   MatLab和OpenCV中的rgb2lab提供不同的结果 (https://www.labfans.com/bbs/showthread.php?t=24091)

poster 2019-12-10 20:48

MatLab和OpenCV中的rgb2lab提供不同的结果
 
我将MatLab和OpenCV中的RGB图像都转换为Lab-colorspace,以便在Lab-space中进行一些颜色处理。在MatLab中,我得到了很好的结果,但是在OpenCV中,结果图像是混乱的。

我在MatLab和OpenCV中检查了RGB值[0 255 0]的转换rgb2lab的结果,结果是相同的。但是当转换回(lab2rgb)时,我在MatLab和OpenCV中得到了不同的结果。知道为什么吗?

Lab值为[88 10 68]:
[LIST][*]在Matlab中,我通过使用lab2srgb获得[255 212 81]作为RGB值[*]在OpenCV中,我使用CV_Lab2RGB得到[255 166 23][/LIST]
[B]回答:[/B]

我认为OpenCV 1.x中存在错误,因为昨天安装了OpenCV 2.1之后,我的算法运行正常,并且得到了预期的结果。



[url=https://stackoverflow.com/questions/4132754]更多&回答...[/url]


所有时间均为北京时间。现在的时间是 22:48

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.