# qualpal::metrics::CIE76

C++ · 4.1.0

[Source](<https://github.com/jolars/qualpal/blob/887b793a3795d298a62e49356a72314ce59dab0d/include/qualpal/metrics.h>)

```cpp
struct qualpal::metrics::CIE76
```

[CIE76](<9898a856a6f81d8ca2916b360ef9cb6ae98bbea3456e714e4c7391fdff024b9e>) (Delta E 1976) color difference metric. 

Computes the Euclidean distance between two colors in CIE Lab space. This is the simplest color difference formula, but less perceptually accurate than [DIN99d](<27015d2beab2e4039b5bacc5eabfad002f7b2746b0445119676aada1f32a432d>) or [CIEDE2000](<5333d0fe7760f4247a9ab5c591dde9118c40d0893b9c057884147334a8038ebd>).

<a id="documentation-template-parameters"></a>

### Template parameters

**`ColorType1, ColorType2`**

Any color type convertible to [colors::Lab](<bc5685852e488d86b4707de1ef1d606b788c0f89d090ec8c4cf03d84d1a6defd>).

 

<a id="documentation-see-also"></a>

### See also

[qualpal::colors::Lab](<bc5685852e488d86b4707de1ef1d606b788c0f89d090ec8c4cf03d84d1a6defd>) 

<a id="cpp-methods"></a>

## Methods

<a id="cpp-34843430ada517a0e12e28b9e20c01815ce392b734a152fcf5a8843cd0db8374"></a>

### `operator()`

```cpp
template<typename ColorType1, typename ColorType2> inline double operator()(const ColorType1 & c1, const ColorType2 & c2) const
```

[Source](<https://github.com/jolars/qualpal/blob/887b793a3795d298a62e49356a72314ce59dab0d/include/qualpal/metrics.h>)

Calculate [CIE76](<9898a856a6f81d8ca2916b360ef9cb6ae98bbea3456e714e4c7391fdff024b9e>) color difference. 

<a id="cpp-34843430ada517a0e12e28b9e20c01815ce392b734a152fcf5a8843cd0db8374-documentation-template-parameters"></a>

##### Template parameters

**`ColorType1`**

Any color class that can be converted to [colors::DIN99d](<a18b7bd442cf0552985e0348d19b68cab53705c36e10dec0d6cf914c671961d1>) 

**`ColorType2`**

Any color class that can be converted to [colors::DIN99d](<a18b7bd442cf0552985e0348d19b68cab53705c36e10dec0d6cf914c671961d1>) 

 

<a id="cpp-34843430ada517a0e12e28b9e20c01815ce392b734a152fcf5a8843cd0db8374-documentation-parameters"></a>

##### Parameters

**`c1`**

First color 

**`c2`**

Second color 

 

<a id="cpp-34843430ada517a0e12e28b9e20c01815ce392b734a152fcf5a8843cd0db8374-documentation-returns"></a>

##### Returns

[CIE76](<9898a856a6f81d8ca2916b360ef9cb6ae98bbea3456e714e4c7391fdff024b9e>) Delta E value
