components.io.rawimagefilereader2
- class RawImageFileReader2(config={}, **kwds)[source]
Bases:
ComponentRead ‘raw’ still image file (CR2, NEF, etc.).
This component uses the rawpy Python package. See
RawImageFileReaderfor a component that uses rawkit.Note that the file is always read in 16-bit linear mode. You will need to convert the image to “gamma corrected” mode before displaying it or saving it to JPEG or similar. See
gammacorrectionfor some useful components.Some options add significantly to the processing time, particularly
fbdd_noise_reductionand some of thedemosaic_algorithmoptions.Config
pathstr
Path name of file to be read.
demosaic_algorithmstr
Set demosaicing method. Possible values:
'LINEAR','VNG','PPG','AHD','DCB','DHT','AAHD'.four_color_rgbbool
Use separate interpolation for 2 green channels.
dcb_iterationsint
Number of passes of DCB interpolation.
dcb_enhancebool
Enhance colours of DCB interpolation.
fbdd_noise_reductionstr
Enable FBDD noise reduction before demosaicing. Possible values:
'Off','Light','Full'.noise_thrfloat
Set denoising threshold. Typically 100 to 1000.
median_filter_passesint
Number of median filter passes after demosaicing.
use_camera_wbbool
Use camera defined white balance.
use_auto_wbbool
Automatic white balance.
user_wbstr
4 comma separated floats that set the gain of each channel.
output_colorstr
Set colour space. Possible values:
'raw','sRGB','Adobe','Wide','ProPhoto','XYZ','ACES','P3D65','Rec2020'.brightfloat
Brightness / white level scaling.
highlight_modestr
Set highlight mode. Possible values:
'Clip','Ignore','Blend','ReconstructDefault','3','4','6','7','8','9'.exp_shiftfloat
Exposure shift. Darken if < 1.0, lighten if > 1.0.
red_scalefloat
Chromatic aberration correction red scale factor.
blue_scalefloat
Chromatic aberration correction blue scale factor.
cropbool
Auto crop image to dimensions in metadata.
Comments or questions? Please email jim@jim-easterbrook.me.uk.