Skip to content

Commit

Permalink
Implement support for *Fichet et al. (2021)* *OpenEXR Layout for Spec…
Browse files Browse the repository at this point in the history
…tral Images*.
  • Loading branch information
KelSolaar committed Apr 30, 2024
1 parent 61eb68e commit 8a85577
Show file tree
Hide file tree
Showing 10 changed files with 1,361 additions and 10 deletions.
6 changes: 6 additions & 0 deletions colour/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@
LUT3x1D,
LUTOperatorMatrix,
LUTSequence,
Specification_Fichet2021,
SpectralDistribution_IESTM2714,
SpectralDistribution_Sekonic,
SpectralDistribution_UPRTek,
Expand All @@ -262,9 +263,11 @@
read_sds_from_csv_file,
read_sds_from_xrite_file,
read_spectral_data_from_csv_file,
read_spectral_image_Fichet2021,
write_image,
write_LUT,
write_sds_to_csv_file,
write_spectral_image_Fichet2021,
)
from .models import (
CCTF_DECODINGS,
Expand Down Expand Up @@ -632,6 +635,7 @@
"LUT3D",
"LUTOperatorMatrix",
"LUTSequence",
"Specification_Fichet2021",
"READ_IMAGE_METHODS",
"SpectralDistribution_IESTM2714",
"WRITE_IMAGE_METHODS",
Expand All @@ -640,11 +644,13 @@
"read_sds_from_csv_file",
"read_sds_from_xrite_file",
"read_spectral_data_from_csv_file",
"read_spectral_image_Fichet2021",
"SpectralDistribution_UPRTek",
"SpectralDistribution_Sekonic",
"write_image",
"write_LUT",
"write_sds_to_csv_file",
"write_spectral_image_Fichet2021",
]
__all__ += [
"CAM02LCD_to_JMh_CIECAM02",
Expand Down
16 changes: 16 additions & 0 deletions colour/io/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from . import luts
from .image import (
Image_Specification_Attribute,
MAPPING_BIT_DEPTH,
image_specification_OpenImageIO,
convert_bit_depth,
)
Expand All @@ -17,6 +18,13 @@
from .image import READ_IMAGE_METHODS, WRITE_IMAGE_METHODS
from .image import read_image, write_image
from .image import as_3_channels_image
from .fichet2021 import (
sd_to_spectrum_attribute_Fichet2021,
spectrum_attribute_to_sd_Fichet2021,
Specification_Fichet2021,
read_spectral_image_Fichet2021,
write_spectral_image_Fichet2021,
)
from .ctl import (
ctl_render,
process_image_ctl,
Expand All @@ -40,6 +48,7 @@
__all__ += luts.__all__
__all__ += [
"Image_Specification_Attribute",
"MAPPING_BIT_DEPTH",
"image_specification_OpenImageIO",
"convert_bit_depth",
]
Expand Down Expand Up @@ -68,6 +77,13 @@
__all__ += [
"as_3_channels_image",
]
__all__ += [
"sd_to_spectrum_attribute_Fichet2021",
"spectrum_attribute_to_sd_Fichet2021",
"Specification_Fichet2021",
"read_spectral_image_Fichet2021",
"write_spectral_image_Fichet2021",
]
__all__ += [
"process_image_OpenColorIO",
]
Expand Down

0 comments on commit 8a85577

Please sign in to comment.