Crate cgats

Source
Expand description

This crate contains utilities for parsing and creating CGATS color data files.

Re-exports§

pub use DataPoint::*;

Structs§

Cgats
The CGATS data
DataFormat
Representation of the DATA_FORMAT fields
DeReport
Analysis structure for evaluating DeltaE data sets. Created by using the Cgats::de_report method.
LabValue
CIEL*a*b*

Enums§

ColorType
Color types represented in a CGATS DATA_FORMAT
DEMethod
The most common DeltaE methods
DataPoint
The building block of CGATS data
Field
The types contained within the DATA_FORMAT section of a CGATS file
MetaData
CGATS header data
Vendor
A vendor is the party that makes the CGATS file with their own special sauce.

Traits§

CgatsFmt
Trait to format data for writing to CGATS files
Delta
Trait to determine color difference between various types. As long as the type can be converted to Lab, we can calculate DeltaE.
IterSum
Front end method for the PartialSum trait
PartialAdd
Trait to add values that may or may not be compatible. Returns None if either value is not a type that can add.
PartialAvg
Trait to average values in an iterator that may or may not be compatible
PartialDiv
Trait to divide values that may not be compatible.
PartialSum
Trait to sum an iterator of values that may or may not be compatible

Type Aliases§

BoxErr
A generic heap allocated error
Result
A generic Result with a BoxErr