PointOfInterestFinder.find_poi_in_roi¶
- PointOfInterestFinder.find_poi_in_roi(image, region=None)[source]¶
This method identifies pixel level centers for all points of interest inside of some region of interest.
A point of interest is defined as any grouping of n pixels that are above
threshold* standard_deviation wheremin_size<= n <=max_size. The standard_deviation is computed using theflatten_image_and_get_noise_level()method. Pixels are defined to be grouped if they are neighboring:nnnnn nyyyn nyoyn nyyyn nnnnn
therefore any pixels labeled
yare grouped withowhereas any pixels labelednare not.This method will ignore any blobs that contain saturated pixels if
reject_saturationis set to True and theimageobject has an attributesaturationcontaining the saturation level for the image.This method will also return the connected components stats (see OpenCV connectedComponentsWithStats for details) and the peak signal to noise ratio for each detection.
- Parameters:
image (ndarray) – The image being considered
region (tuple[ndarray, ndarray] | None) – The region of the image to consider
- Returns:
the pixel level locations of the points of interest in the region of interest (row, col), the connected component stats and the peak signal to noise ratio for each detection if
return_statsis set to True.- Return type: