Skip to content

RAW Conversion

raw_conversion

The main processing pipeline for RAW images.

Functions:

Attributes:

CANVAS_MODES module-attribute

CANVAS_MODES = Literal[
    "No",
    "Proportional white",
    "Proportional black",
    "Uniform white",
    "Uniform black",
    "Fixed white",
    "Fixed black",
]

Available canvas modes.

create_lut_cached cached

create_lut_cached(*args, **kwargs)

Cache LUTs for specific settings.

crop_rotate_zoom

crop_rotate_zoom(
    image: ndarray,
    frame_width: int | float = 36,
    frame_height: int | float = 24,
    rotation: float = 0.0,
    zoom: float = 1.0,
    rotate_times: int = 0,
    flip: bool = False,
)

Apply cropping, rotation, and a zoom to an image.

raw_to_linear

raw_to_linear(src, half_size=True)

Load linear raw data using rawpy.