pysted.utils.pixel_list_filter

pysted.utils.pixel_list_filter(datamap, pixel_list, img_pixelsize, data_pixelsize, output_empty=False)

Function to pre-filter a pixel list. Depending on the ratio between the data_pixelsize and acquisition pixelsize, a certain number of pixels must be skipped between laser applications.

Parameters:
  • pixel_list – The list of pixels passed to the acquisition function, which needs to be filtered

  • img_pixelsize – The acquisition pixelsize (m)

  • data_pixelsize – The data pixelsize (m)

  • output_empty – Bool to allow (or not) this function to return an empty pixel list

Returns:

A filtered version of the input pixel_list, from which the pixels which can’t be iterated over due to the pixel sizes have been removed