Learn R Programming

spacesXYZ (version 1.5-1)

DeltaE_CAM02: Calculate the Color Difference in CAM02-UCS between Two Colors

Description

Calculate Standard CIE Color Differences between two colors in uniform color space CAM02-UCS

Usage

DeltaE_CAM02( CAM_1, CAM_2 )

Value

DeltaE_CAM02() returns a numeric vector of length N, containing the computed \(\Delta\)E in uniform color space CAM02-UCS, between corresponding rows of CAM_1 and CAM_2.

Arguments

CAM_1

a data.frame returned from CIECAM02fromXYZ(), with 1 or N rows.

CAM_2

a data.frame returned from CIECAM02fromXYZ(), with 1 or N rows.

These 2 data.frames must have an equal number of rows, *or* one of them can have a single row which is then replicated to match the number or rows in the other one. The \(\Delta\)E is then computed between corresponding rows.

References

Fairchild, Mark D. CIECAM02. in Color Appearance Models (3rd ed.). pp. 287-302. John Wiley & Sons. 2013.

See Also

CIECAM02fromXYZ()

Examples

Run this code
CAM = CIECAM02fromXYZ( c(19.01,20,21.78, 25,20,15), c(95.05,100,108.88), L_A=100 )
CAM
## XYZ.1 XYZ.2 XYZ.3         h        J        Q        C          M       Jp      abp.1      abp.2
## 19.01 20.00 21.78 211.58993 41.57911 153.4480  0.80776  0.7624239 54.74946 -0.2796279 -0.1719605
## 25.00 20.00 15.00  22.98284 43.12872 156.2812 33.08790 31.2308204 56.31674  9.4290922  3.9990801

DeltaE_CAM02( CAM[1, ], CAM[2, ] )

## [1] 10.68238

Run the code above in your browser using DataLab