get_dead_stats: Generate summary of damaged pixels and add as a dead_stats...

View source: R/analysis.R

get_dead_statsR Documentation

Generate summary of damaged pixels and add as a dead_stats attribute to the detector object

Description

Generate summary of damaged pixels and add as a dead_stats attribute to the detector object

Usage

get_dead_stats(detector)

Arguments

detector

Detector object

Value

Detector object with dead_stats attribute

Examples

# 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)
# Calculate dead_stats
detector_pilatus <- get_dead_stats(detector_pilatus)
# Print dead stats
print(detector_pilatus$dead_stats)

alan-turing-institute/DetectorChecker documentation built on April 13, 2025, 8:57 p.m.