Skip to content

Fixes for mono LSC#327

Draft
njhollinghurst wants to merge 3 commits intoraspberrypi:nextfrom
njhollinghurst:fix-20260212
Draft

Fixes for mono LSC#327
njhollinghurst wants to merge 3 commits intoraspberrypi:nextfrom
njhollinghurst:fix-20260212

Conversation

@njhollinghurst
Copy link
Collaborator

Fix various gotchas and code rot issues that prevented mono (only) LSC (only) from Raspberry Pi generated DNG files.

Some versions of rpicam-apps did not set white level for mono DNGs:
tolerate this. Allow black level to be either a scalar or an array.
Don't require a CFA pattern for mono DNGs.

Copy the filename to Img.str, as this is required for plotting.

Signed-off-by: Nick Hollinghurst <nick.hollinghurst@raspberrypi.com>
The non-colour case, and plotting code, had become broken.

Signed-off-by: Nick Hollinghurst <nick.hollinghurst@raspberrypi.com>
Infer the unsettable "alsc_only" option. Not only for convenience
but to avoid an exception when macbeth chart images are not found.

Signed-off-by: Nick Hollinghurst <nick.hollinghurst@raspberrypi.com>
@njhollinghurst
Copy link
Collaborator Author

Ah... now I've noticed the existence of alsc_only.py, I see that last change isn't strictly needed.
Though it's arguably more elegant than requiring a whole separate script.

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.

1 participant