components.io.rawimagefilereader

class RawImageFileReader(config={}, **kwds)[source]

Bases: Component

Read β€˜raw’ still image file (CR2, NEF, etc.).

This component uses the rawkit Python package. See RawImageFileReader2 for a component that uses rawpy.

See the rawkit documentation for more detail on the configuration options.

Config

path

str

Path name of file to be read.

16bit

bool

Get greater precision than normal 8-bit range.

brightness

float

Set the gain.

highlight_mode

str

Set highlight mode. Possible values: 'clip', 'ignore', 'blend', 'reconstruct'.

gamma

str

Set gamma curve. Possible values: 'linear', 'bt709', 'srgb', 'adobe_rgb'.

colourspace

str

Set colour space. Possible values: 'raw', 'srgb', 'adobe_rgb', 'wide_gammut_rgb', 'kodak_prophoto_rgb', 'xyz'.

interpolation

str

Set demosaicing method. Possible values: 'linear', 'vng', 'ppg', 'ahd', 'dcb', 'modified_ahd', 'afd', 'vcd', 'mixed_vcd_modified_ahd', 'lmmse', 'amaze'.

noise_threshold

float

Set denoising threshold. Typically 100 to 1000.

wb_auto

bool

Automatic white balance.

wb_camera

bool

Use camera defined white balance.

wb_greybox

str

4 comma separated integers that define a grey area of the image.

wb_rgbg

str

4 comma separated floats that set the gain of each channel.

red_scale

float

Chromatic aberration correction red scale factor.

blue_scale

float

Chromatic aberration correction blue scale factor.

crop

bool

Auto crop image to dimensions in metadata.

use_camera_profile

bool

Use embedded camera profile, if present.


Comments or questions? Please email jim@jim-easterbrook.me.uk.