Colord.It8¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r |
|||
r/w |
|||
r |
|||
r |
|||
r |
|||
r |
|||
r |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Colord.It8(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new()[source]¶
- Returns:
a new
Colord.It8
object.- Return type:
Creates a new
Colord.It8
object.New in version 0.1.20.
- classmethod new_with_kind(kind)[source]¶
- Parameters:
kind (
Colord.It8Kind
) – aColord.It8Kind
, e.gColord.It8Kind.TI3
.- Returns:
a new
Colord.It8
object.- Return type:
Creates a new
Colord.It8
object.New in version 0.1.20.
- add_data(rgb, xyz)[source]¶
- Parameters:
rgb (
Colord.ColorRGB
) – aColord.ColorRGB
, orNone
xyz (
Colord.ColorXYZ
) – aColord.ColorXYZ
, orNone
Adds a reading to this object. If either of rgb or xyz is
None
then a black reading (0.0, 0.0, 0.0) is added instead.New in version 0.1.20.
- add_option(option)[source]¶
- Parameters:
option (
str
) – A IT8 option, e.g. “TYPE_LCD”
Sets any extra options that have to be set in the CCMX file
New in version 0.1.20.
- add_spectrum(spectrum)[source]¶
- Parameters:
spectrum (
Colord.Spectrum
) – the spectral data
Adds a spectrum to the spectral array.
New in version 1.1.6.
- get_data_item(idx, rgb, xyz)[source]¶
- Parameters:
idx (
int
) – the item indexrgb (
Colord.ColorRGB
) – the returned RGB valuexyz (
Colord.ColorXYZ
) – the returned XYZ value
- Returns:
True
if the index existed.- Return type:
Gets a specific bit of data from this object. The returned data are absolute readings and are not normalised.
New in version 0.1.20.
- get_data_size()[source]¶
- Returns:
The number of RGB-XYZ readings in this object.
- Return type:
Gets the data size.
New in version 0.1.20.
- get_enable_created()[source]¶
-
Gets if the ‘CREATED’ attribute will be written. This is typically only set in the self test programs.
New in version 0.1.33.
- get_kind()[source]¶
- Returns:
a
Colord.It8Kind
, e.gColord.It8Kind.TI3
.- Return type:
Gets the kind of IT8 file.
New in version 0.1.20.
- get_matrix()[source]¶
- Returns:
- Return type:
Gets the calibration matrix in the it8 file.
New in version 0.1.20.
- get_normalized()[source]¶
-
Gets if the data should be written normlaised to y=100.
New in version 0.1.20.
- get_spectrum_array()[source]¶
- Returns:
spectral data
- Return type:
Gets the spectral data of IT8 file.
New in version 1.1.6.
- get_spectrum_by_id(id)[source]¶
-
Gets a specific spectrum in an IT8 file.
New in version 1.1.6.
- get_xyz_for_rgb(R, G, B, delta)[source]¶
- Parameters:
- Returns:
A
Colord.ColorXYZ
, orNone
if the sample does not exist.- Return type:
Gets the XYZ value for a specific RGB value.
New in version 1.2.6.
- has_option(option)[source]¶
- Parameters:
option (
str
) – a option, e.g. “TYPE_CRT”- Returns:
True
if the option is set- Return type:
Finds an option in the file.
New in version 0.1.20.
- load_from_data(data)[source]¶
- Parameters:
data ([
str
]) – text data- Raises:
- Returns:
True
if a valid it8 file was read.- Return type:
Loads a it8 file from data.
New in version 0.1.20.
- load_from_file(file)[source]¶
- Parameters:
- Raises:
- Returns:
True
if a valid it8 file was read.- Return type:
Loads a it8 file from disk.
New in version 0.1.20.
- save_to_data(data)[source]¶
- Parameters:
data ([
str
]) – a pointer to returned data- Raises:
- Returns:
True
if it8 file was saved.- Return type:
Saves a it8 file to an area of memory.
New in version 0.1.26.
- save_to_file(file)[source]¶
- Parameters:
- Raises:
- Returns:
True
if it8 file was saved.- Return type:
Saves a it8 file to disk
New in version 0.1.20.
- set_enable_created(enable_created)[source]¶
- Parameters:
enable_created (
bool
) – Is ‘CREATED’ should be written
Sets if the ‘CREATED’ attribute should be written. This is mainly useful in the self test programs where we want to string compare the output data with a known reference.
New in version 0.1.33.
- set_instrument(instrument)[source]¶
- Parameters:
instrument (
str
) – the instruemnt name, e.g. “huey”
Sets the measuring instrument that created the .it8 file
New in version 0.1.20.
- set_kind(kind)[source]¶
- Parameters:
kind (
Colord.It8Kind
) – aColord.It8Kind
, e.gColord.It8Kind.TI3
.
Set the kind of IT8 file.
New in version 0.1.20.
- set_matrix(matrix)[source]¶
- Parameters:
matrix (
Colord.Mat3x3
) – aColord.Mat3x3
.
Set the calibration matrix in the it8 file.
New in version 0.1.20.
- set_normalized(normalized)[source]¶
- Parameters:
normalized (
bool
) – If the data is normalized
Sets if normalized data should be written to the .it8 file.
New in version 0.1.20.
- set_originator(originator)[source]¶
- Parameters:
originator (
str
) – the program name, e.g. “gcm-calibrate”
Sets the program name that created the .it8 file
New in version 0.1.20.
- set_reference(reference)[source]¶
- Parameters:
reference (
str
) – the instruemnt name, e.g. “colormunki”
Sets the reference that as used to create the .it8 reference
New in version 0.1.20.
- set_spectral(spectral)[source]¶
- Parameters:
spectral (
bool
) – If the data is spectral
Sets if spectral data should be written to the .it8 file.
New in version 0.1.20.
- set_spectrum_array(data)[source]¶
- Parameters:
data ([
Colord.Spectrum
]) – the spectral data
Set the spectral data
New in version 1.1.6.
Property Details¶
- Colord.It8.props.instrument¶
-
The instrument that created the results, e.g. “huey”
New in version 0.1.20.
- Colord.It8.props.kind¶
-
The kind of IT8 file.
New in version 0.1.20.
- Colord.It8.props.normalized¶
-
If the results file is normalized.
New in version 0.1.20.
- Colord.It8.props.originator¶
-
The framework that created the results, e.g. “cd-self-test”
New in version 0.1.20.
- Colord.It8.props.reference¶
-
The reference that created the results, e.g. “colormunki”
New in version 0.1.20.
- Colord.It8.props.spectral¶
-
If the results file is spectral.
New in version 0.1.20.