Description Usage Arguments Value Examples
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.
1 | remove_high_density_cluster(detector, min_pts = 30, eps_adjust = 0.05)
|
detector |
Detector object |
min_pts |
minimum points argument of dbscan function |
eps_adjust |
adjust eps |
detector object with high density cluster of pixels removed
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.