Modifying raw image data for experiments

Started Apr 5, 2021 | Discussions thread
OP Horshack Veteran Member • Posts: 9,769
Pixel-binning functions
1

I recently had to experiment with pixel binning for a project I'm working on. I thought I'd post in case anyone has interest. I added a module to my Octave Raw Tools framework that does 2x2 pixel binning on regular bayer DNG images. This isn't binning per se since I'm not combining electrical charges like a binning sensor would - I'm instead averaging the post-readout pixels.

The specific source modules are pixelBinDng2x2.m and pixelBin2x2.m. There's also support for uncompressed_raw.exe PGMs pixelBinPgm2x2.m.

Here is a sample output, showing a 100% crop of a 2x2 pixel-binned A7rIV image vs the original image downsampled via Preserve Details 2.0.

Animated PNG: Pixel-binning vs Downsample, 100% Crop

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