remove_high_density_cluster: Remove high density cluster of dead pixels

Description Usage Arguments Value Examples

View source: R/pixel.R

Description

In some situations, the analysis may be dominated by an area of elevated damage. The investigation of complete spatial randomness then becomes uninformative. The area with elevated damage can be removed. Dead statistics and clumps are recalculate if they were present in the Detector object.

Usage

1
remove_high_density_cluster(detector, min_pts = 30, eps_adjust = 0.05)

Arguments

detector

Detector object

min_pts

minimum points argument of dbscan function

eps_adjust

adjust eps

Value

detector object with high density cluster of pixels removed

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# Create a detector
detector_pilatus <- create_detector("Pilatus")
# Load a pixel matrix
file_path <-  system.file("extdata", "Pilatus", "badpixel_mask.tif",
                         package ="detectorchecker")
detector_pilatus <- load_pix_matrix(detector = detector_pilatus, file_path = file_path)
# Find events
detector_pilatus_events <- find_clumps(detector_pilatus)
# Remove high density clusters
detector_pilatus_modified <- remove_high_density_cluster(detector_pilatus, min_pts = 30, eps_adjust = 0.05)

alan-turing-institute/DetectorChecker documentation built on Jan. 3, 2021, 10:37 a.m.