Skip to content

Conversation

@maokeduolai
Copy link

This PR addresses a critical crash related to custom illuminant handling and resolves several bugs within the camera calculator. It also introduces new, advanced controls for CLF generation to provide users with more flexibility.

Summary of Changes

This pull request contains two main categories of changes: bug fixes and new features.

Bug Fixes

  • Custom Illuminant Crash: Resolves a critical stability issue where the application would crash upon selecting the "Custom" illuminant. The system now correctly handles and processes user-provided spectral power distribution (SPD) data throughout the pipeline.
  • White Point Calculation: Corrects the white point calculation method used for custom illuminant SPDs in aces/idt/core/common.py.
  • UI Parameter Handling: Fixes a bug in the idt_calculator_camera where parameters set in the UI (such as RGB_display_colourspace, optimisation_space, and LUT Size) were not being correctly transmitted to or processed by the backend.
  • Image Caching: Resolves a caching issue that prevented analysis images (e.g., colour_checker_segmentation) from being displayed correctly on subsequent calculations.
  • Debugging: Adds enhanced debugging logs for CLF generation options and the final transformation matrix to assist with future troubleshooting.

New Features

  • Advanced CLF Generation Controls: To provide more granular control over the output, three new boolean toggles have been added to the camera calculator UI:
    • Flatten CLF
    • Include White Balance in CLF
    • Include Exposure Factor in CLF

This commit resolves critical bugs in the custom illuminant workflow and addresses several issues in the camera calculator UI.

- A complete fix for the "Custom" illuminant handling. The application no longer crashes when "Custom" is selected. It now correctly processes and utilizes the user-provided spectral power distribution (SPD) throughout the calculation pipeline.
- Corrected the white point calculation method for custom illuminant SPDs in `aces/idt/core/common.py`.
- Fixed a series of bugs in the `idt_calculator_camera` application where parameters from the web UI (e.g., `RGB_display_colourspace`, `optimisation_space`, `LUT Size`) were not being properly received or processed by the backend.
- Resolved an image caching issue that prevented analysis images (like `colour_checker_segmentation`) from displaying on subsequent calculations.
- Added debugging logs for CLF generation options and the final transformation matrix to aid future development.

feat: Add advanced controls for CLF generation

Added three new boolean toggles to the camera calculator UI to provide more granular control over the generated CLF file:
  - `Flatten CLF`
  - `Include White Balance in CLF`
  - `Include Exposure Factor in CLF`
@CLAassistant
Copy link

CLAassistant commented Jun 20, 2025

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants