dead_stats_summary: Summary of damaged pixels for a given detector

View source: R/analysis.R

dead_stats_summaryR Documentation

Summary of damaged pixels for a given detector

Description

Compute summary statistics for a detector object. Ensure a damaged pixel matrix has been loaded with load_pix_matrix

Usage

dead_stats_summary(detector)

Arguments

detector

Detector object

Value

A string with damaged pixels overall statistics

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_summary
dead_stats_summary(detector_pilatus)

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