Enumerations

RawType

class rawpy.RawType(value)

RAW image type.

Flat = 0
Stack = 1

ThumbFormat

class rawpy.ThumbFormat(value)

Thumbnail/preview image type.

BITMAP = 2
JPEG = 1

DemosaicAlgorithm

class rawpy.DemosaicAlgorithm(value)

Identifiers for demosaic algorithms.

AAHD = 12
AFD = 6
AHD = 3
AMAZE = 10
DCB = 4
DHT = 11
LINEAR = 0
LMMSE = 9
MODIFIED_AHD = 5
PPG = 2
VCD = 7
VCD_MODIFIED_AHD = 8
VNG = 1
checkSupported(self)

Like isSupported but raises an exception for the False case.

property isSupported

Return True if the demosaic algorithm is supported, False if it is not, and None if the support status is unknown. The latter is returned if LibRaw < 0.15.4 is used or if it was compiled without cmake.

The necessary information is read from the libraw_config.h header which is only written with cmake builds >= 0.15.4.

ColorSpace

class rawpy.ColorSpace(value)

Color spaces.

ACES = 6
Adobe = 2
P3D65 = 7
ProPhoto = 4
Rec2020 = 8
Wide = 3
XYZ = 5
raw = 0
sRGB = 1

HighlightMode

class rawpy.HighlightMode(value)

Highlight modes.

Blend = 2
Clip = 0
Ignore = 1
classmethod Reconstruct(self, level)
Parameters:

level (int) – 3 to 9, low numbers favor whites, high numbers favor colors

ReconstructDefault = 5

FBDDNoiseReductionMode

class rawpy.FBDDNoiseReductionMode(value)

FBDD noise reduction modes.

Full = 2
Light = 1
Off = 0