Modifying raw image data for experiments

Started Apr 5, 2021 | Discussions thread
OP Horshack Veteran Member • Posts: 9,769
Working with individual channels
1

Here are some quick Matlab/Octave recipes for modifying individual color channels as part of the raw data analysis/modification workflow.

rawBayerToChannels.m - Separates color channels from raw bayer data
channelsToRawBayer.m - Interleaves color channels back into a bayer pattern
swapRedBlueChannels.m - Example code that uses the above two functions

Here's an animate PNG showing the dpreview A73 ISO 100 studio raw image with its R/B channels swapped, with the resulting raw processed by ACR/LR:
Animated PNG: A73 ISO 100 Studio Image, Before/Afer of Red/Blue raw channel swap

Keyboard shortcuts:
FForum PPrevious NNext WNext unread UUpvote SSubscribe RReply QQuote BBookmark MMy threads
Color scheme? Blue / Yellow