converters.ppm_from_png

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 PNG 8 bits -> PPM 10 bits conversion using ffmpeg.

generate_ppm_from_png(raw_light_field_data, ppm_path, scan_order=<function get_serpentine_scan_list>, remove_after_using=False)[source]

Get RAW PPM light field object from RAW PNG light field data.

Parameters:
  • raw_light_field_data (RAW_RGB_PNG_LightField_Data) – RAW PNG light field to be converted

  • ppm_path (Union[str, Path]) – Path to save the PPM files

  • scan_order (ScanFunctionType) – Function defining the scan order

  • remove_after_using (bool) – Whether to remove intermediate files

Returns:

Converted PPM light field data

Return type:

RAW_RGB_PPM_LightField_Data

main()[source]