matlab中的measure,Measure color reproduction using test chart

Read an image of an eSFR chart into the workspace.

I = imread('eSFRTestImage.jpg');

Create an esfrChart object, then display the chart with ROI annotations. The 16 color patch ROIs are labeled with white numbers.

chart = esfrChart(I);

displayChart(chart,'displayEdgeROIs',false, ...

'displayGrayROIs',false,'displayRegistrationPoints',false)

e80276d2cc6ead1edec05433b61c879c.png

Measure the color in all color patch ROIs.

colorTable = measureColor(chart)

colorTable=16×8 table

ROI Measured_R Measured_G Measured_B Reference_L Reference_a Reference_b Delta_E

___ __________ __________ __________ ___________ ___________ ___________ _______

1 67 57 58 38.586 7.541 7.0812 15.15

2 156 127 122 62.182 13.225 13.826 9.8745

3 73 95 152 49.369 -0.51463 -20.062 18.455

4 62 79 58 43.926 -6.8587 17.278 14.849

5 104 109 171 53.415 9.457 -22.822 12.99

6 118 175 187 69.95 -20.889 -0.21752 13.123

7 214 192 69 78.643 1.8052 67.091 9.2399

8 154 73 138 46.853 41.998 -17.056 5.1282

9 62 120 182 51.05 -15.166 -22.416 22.813

10 55 80 185 40.811 8.7346 -44.265 22.782

11 79 135 72 55.716 -23.419 28.839 9.4826

12 152 53 77 42.759 44.167 7.9536 5.4168

13 169 91 52 58.211 27.58 47.578 15.988

14 142 63 87 47.012 39.15 8.5453 11.651

15 91 67 102 40.591 17.951 -9.525 10.897

16 152 183 80 70.505 -16.318 49.811 10.253

Display the color accuracy measurements. Each square color patch is the measured color, and the thick surrounding border is the reference color for that ROI. Each color accuracy measurement is displayed as Delta_E, the Euclidean distance between measured and reference colors in the CIE 1976 L*a*b* color space. More accurate colors have a smaller Delta_E.

figure

displayColorPatch(colorTable)

3f24822423d7752c9d059db746484f08.png

For an alternative representation of the color accuracy measurements, plot the measured and reference colors in the CIE 1976 L*a*b* color space on a chromaticity diagram. Red circles indicate the reference color. Green circles indicate the measured color of each color patch. The chromaticity diagram does not portray the brightness of color.

figure

plotChromaticity(colorTable)

8d32bcb90f2a2bb449130aba7555c9e1.png

ROIs with a shorter distance between the reference and measurement points have smaller differences in chromaticity, which can contribute to a smaller value of Delta_E. However, brightness also contributes to the value of Delta_E. For example, even though the reference and measurement points for ROI 13 are near each other on the chromaticity diagram, they have a large Delta_E because of their large difference in brightness.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值