Modifying raw image data for experiments

Started Apr 5, 2021 | Discussions thread
hjulenissen Senior Member • Posts: 2,451
Re: Working with individual channels

Horshack wrote:

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

Nice use of reshaping for the interleaving.

-h

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