data_handlers.encoding_orders

Author: Ismael Seidel (ismael.seidel@ufsc.br) Affiliation: Embedded Computing Lab (ECL), Federal University of Santa Catarina (UFSC)

Description:

This module contains encoding orders. The encoding order is important when converting a light field in to a pseudo-temporal sequence.

get_serpentine_scan_list(n_views_width, n_views_height, initial_width=0, initial_height=0, step_width=1, step_height=1)[source]

Generates a serpentine scan order for Light Field views.

Parameters:
  • n_views_width (int) – Number of views in width

  • n_views_height (int) – Number of views in height

  • initial_width (int, optional) – Initial horizontal offset, defaults to 0

  • initial_height (int, optional) – Initial vertical offset, defaults to 0

  • step_width (int, optional) – Step size in width, defaults to 1

  • step_height (int, optional) – Step size in height, defaults to 1

Returns:

List of tuples representing the scan order

Return type:

List[Tuple[int, int]]

get_raster_scan_list(n_views_width, n_views_height, initial_width=0, initial_height=0, step_width=1, step_height=1)[source]

Generates a raster scan order for Light Field views.

Parameters:
  • n_views_width (int) – Number of views in width

  • n_views_height (int) – Number of views in height

  • initial_width (int, optional) – Initial horizontal offset, defaults to 0

  • initial_height (int, optional) – Initial vertical offset, defaults to 0

  • step_width (int, optional) – Step size in width, defaults to 1

  • step_height (int, optional) – Step size in height, defaults to 1

Returns:

List of tuples representing the scan order

Return type:

List[Tuple[int, int]]

get_right_to_left_scan_list(n_views_width, n_views_height, initial_width=0, initial_height=0, step_width=1, step_height=1)[source]

Generates a right-to-left scan order for Light Field views.

Parameters:
  • n_views_width (int) – Number of views in width

  • n_views_height (int) – Number of views in height

  • initial_width (int, optional) – Initial horizontal offset, defaults to 0

  • initial_height (int, optional) – Initial vertical offset, defaults to 0

  • step_width (int, optional) – Step size in width, defaults to 1

  • step_height (int, optional) – Step size in height, defaults to 1

Returns:

List of tuples representing the scan order

Return type:

List[Tuple[int, int]]

get_raster_bottom_to_top_scan_list(n_views_width, n_views_height, initial_width=0, initial_height=0, step_width=1, step_height=1)[source]

Generates a raster scan order from bottom to top for Light Field views.

Parameters:
  • n_views_width (int) – Number of views in width

  • n_views_height (int) – Number of views in height

  • initial_width (int, optional) – Initial horizontal offset, defaults to 0

  • initial_height (int, optional) – Initial vertical offset, defaults to 0

  • step_width (int, optional) – Step size in width, defaults to 1

  • step_height (int, optional) – Step size in height, defaults to 1

Returns:

List of tuples representing the scan order

Return type:

List[Tuple[int, int]]

get_right_to_left_bottom_to_top_scan_list(n_views_width, n_views_height, initial_width=0, initial_height=0, step_width=1, step_height=1)[source]

Generates a right-to-left, bottom-to-top scan order for Light Field views.

Parameters:
  • n_views_width (int) – Number of views in width

  • n_views_height (int) – Number of views in height

  • initial_width (int, optional) – Initial horizontal offset, defaults to 0

  • initial_height (int, optional) – Initial vertical offset, defaults to 0

  • step_width (int, optional) – Step size in width, defaults to 1

  • step_height (int, optional) – Step size in height, defaults to 1

Returns:

List of tuples representing the scan order

Return type:

List[Tuple[int, int]]