qualpal 2.3.0
Loading...
Searching...
No Matches
color_difference.h File Reference

Functions for generating color difference matrices. More...

#include <cmath>
#include <qualpal/matrix.h>
#include <qualpal/metrics.h>
#include <qualpal/threads.h>
#include <vector>
Include dependency graph for color_difference.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  qualpal
 Qualitative color palette generation library.
 

Functions

template<typename ColorType , typename Metric = metrics::DIN99d>
Matrix< double > qualpal::colorDifferenceMatrix (const std::vector< ColorType > &colors, const Metric &metric=Metric{}, const double max_memory=1)
 Generate a color difference matrix.
 
Matrix< double > qualpal::colorDifferenceMatrix (const std::vector< colors::XYZ > &colors, const metrics::MetricType &metric_type, const double max_memory=1)
 Generate a color difference matrix for Lab colors with runtime metric selection.
 

Detailed Description

Functions for generating color difference matrices.

This file provides functions to compute pairwise color differences between a set of colors using various color difference metrics. It supports parallel computation and memory management.

Definition in file color_difference.h.