get_signal_pixels()#

function get_signal_pixels(im_region, n_pixels, input_box)#

Gets n_pixels from an image region, im_region.

The image region is processed to find the most significant pixels. and uses the coordinates of the bounding box, input_box to reference to the coordinates to the original image. Also returns a vector of 1s indicating signal points.

Parameters:
  • im_region (ndarray) – an image region

  • n_pixels (int) – number of pixel points to return

  • input_box (list[int]) – the bounding box of the original image

Return type:

tuple[ndarray, ndarray]