cars.applications.holes_detection.cloud_to_bbox

CARS holes detection module init file

Module Contents

Classes

CloudToBbox

CloudToBbox

Functions

compute_mask_bboxes_wrapper(left_image_dataset, ...[, ...])

Compute mask bounding boxes.

class cars.applications.holes_detection.cloud_to_bbox.CloudToBbox(conf=None)

Bases: cars.applications.holes_detection.holes_detection.HolesDetection

CloudToBbox

check_conf(conf)

Check configuration

Parameters

conf (dict) – configuration to check

Returns

overloaded configuration

Return type

dict

run(epipolar_images_left, epipolar_images_right, classification=None, margin=0, orchestrator=None, pair_folder=None, pair_key='PAIR_0')

Run Refill application using plane method.

Parameters
  • epipolar_images_left (CarsDataset) – left epipolar image

  • epipolar_images_right (CarsDataset) – right epipolar image

  • is_activated (bool) – activate application

  • margin (int) – margin to use

  • classification (list(str)) – mask classes to use

  • orchestrator (Orchestrator) – orchestrator used

  • pair_folder (str) – folder used for current pair

  • pair_key (str) – pair id

Returns

left holes, right holes

Return type

Tuple(CarsDataset, CarsDataset)

cars.applications.holes_detection.cloud_to_bbox.compute_mask_bboxes_wrapper(left_image_dataset, right_image_dataset, window_left, window_right, overlap_left, overlap_right, classification, margin=20, saving_info_left=None, saving_info_right=None)

Compute mask bounding boxes.

Parameters
  • left_image_dataset

    tiled Left image - dataset with :

    • cst.EPI_IMAGE

    • cst.EPI_MSK (if given)

    • cst.EPI_COLOR (for left, if given)

  • right_image_dataset (xr.Dataset) – tiled Right image

  • window_left (dict) – left window

  • window_right (dict) – right window

  • overlap_left (dict) – left overlpas

  • overlap_right (dict) – right overlaps

  • classification (list(str)) – mask classes to use

  • margin (int) – margin to use

  • saving_info_left (dict) – saving infos left

  • saving_info_right (dict) – saving infos right

Returns

Left image object, Right image object (if exists)

Returned objects are composed of dataset with :

  • cst.EPI_IMAGE

  • cst.EPI_MSK (if given)

  • cst.EPI_COLOR (for left, if given)