View Single Post
  #1  
Old 23-07-2017, 09:41 AM
rcheshire's Avatar
rcheshire (Rowland)
Registered User

rcheshire is offline
 
Join Date: Apr 2010
Location: Geelong
Posts: 2,617
Applying channel multipliers

I found this particularly helpful and thought to share it, based on a Cloudy Nights thread, which explains the process quite well.

Apply DSLR channel multipliers to an image. The jpg's illustrate the effect on a post processed image. A little overdone but you get the idea. Multipliers need tweaking.

EDIT: The Orion image was taken with a modded 450D. The Eta image with an unmodded Nikon D3300 - files offered for download by and IIS member some time ago. So, I guess, if you don't have a modded camera this process may be of benefit.

Viewed on my phone the saturation is ridiculously over done.

The script requires ImageMagick. Edit to suit filenames and plug in your camera's matrix from here, for example.

Code:
#! /bin/bash

# Apply DSLR channel multipliers, obtained from 

# https://www.dxomark.com/Cameras/Canon/EOS-450D---Measurements

# ImageMagick -color-matrix 

# To run script from command line in Windows OS replace \ with ^ AFAIK...

# Canon 450D 
# R sRGB	G sRGB	B sRGB	
# R raw	1.91	-1	0.09
# G raw	-0.19	1.65	-0.46
# B raw	0.07	-0.7	1.64

# Color matrix as defined in ISO standard 17321

# Play around with multipliers for Ha modded cameras

convert in.jpg -depth 16 -color-matrix \
	"1.81 -0.8 0.07 0.0, 0.0, 0.0 \
    	-0.16 1.51 -0.4 0.0, 0.0, 0.0 \
    	0.05 -0.5 1.5 0.0, 0.0, 0.0 \
    	0.0 0.0 0.0 0.0, 0.0, 0.0 \
    	0.0 0.0 0.0 0.0, 0.0, 0.0 \
    	0.0 0.0 0.0 0.0, 0.0, 0.0" -alpha off out.jpg

animate -delay 100 -loop 0 -resize 800x600 -page 800x600 in.jpg out.jpg

exit
Depending on the success of trials I may add the process as an option to Asterism.
Attached Thumbnails
Click for full-size image (matrix-0.jpg)
82.5 KB36 views
Click for full-size image (matrix-1.jpg)
86.2 KB38 views
Click for full-size image (in.jpg)
207.7 KB33 views
Click for full-size image (out.jpg)
208.8 KB33 views

Last edited by rcheshire; 24-07-2017 at 10:11 AM.
Reply With Quote