converters.png_from_ppm
Author: Ismael Seidel (ismael.seidel@ufsc.br) Affiliation: Embedded Computing Lab (ECL), Federal University of Santa Catarina (UFSC)
- Description:
This module contains the implementation of PPM 10 bits -> PNG 8 bits conversion using ffmpeg.
- generate_png_from_ppm(raw_light_field_data, png_path, scan_order=<function get_serpentine_scan_list>, remove_after_using=False)[source]
Get RAW PNG (RGB) light field object from RAW PPM (RGB)
- Parameters:
raw_light_field_data (RAW_RGB_PPM_LightField_Data) – RAW PPM light field to be converted
png_path (Union[str, Path]) – Path to save the PNG files
scan_order (ScanFunctionType) – Function defining the scan order
remove_after_using (bool) – Whether to remove intermediate files
- Returns:
Converted PNG light field data
- Return type: