delta.pipeline.ROI.get_segmentation_inputs

ROI.get_segmentation_inputs(img: ndarray[Any, dtype[float32]]) Tuple[ndarray, Optional[Tuple[List, List]]]

Compile segmentation inputs for ROI

Parameters
img2D array

Single frame to crop and send for segmentation.

Returns
x4D array

Segmentation input array. Dimensions are (windows, size_y, size_x, 1).

windowstuple of 2 lists

y and x coordinates of crop windows if any, or None.