[OTHER - Clarification] Order of operations in camera pipeline

Open
#1,316 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
20/100
Issue type
Documentation
Clarity
Needs clarification
Activity status
Stale

Research direction

No repository file, test, or entry point is named. Start by tracing the camera pipeline stages discussed in the issue, especially lens shading, gamma correction, and CCM application; done would be a documented, definitive ordering and whether CCM placement can be adjusted.

Written by the indexing model from the issue text.

Description

Just a clarification.

"Contrast" is the gamma correction in this image:

Image

This means that the CCM is applied to the non-linear data once the gamma correction is complete?

Why I am asking

In case it helps I'll let you know why I am asking

We are trying to do spacially variant colour unmixing to remove colour desaturation that comes from the very strong lens shading. To do this we basically create a tensor which is a CCM for each pixel.

I am trying to linearise the calibration images and the images to be corrected. It is my understanding that I need to invert the CCM before I degamma? Is CCM coming after gamma hard coded into the pipeline or is there a way to adjust it?

Dominant language
Python
Stars
1.2k
Forks
258
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from raspberrypi/picamera2

All issues in raspberrypi/picamera2

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.