get_dead_pix_mask: Creates a mask matrix of dead pixels

View source: R/pixel.R

get_dead_pix_maskR Documentation

Creates a mask matrix of dead pixels

Description

Converts the pix_dead attribute of a detector (NX2 list) to a matrix of 1 and 0 (1 for dead pixel)

Usage

get_dead_pix_mask(detector)

Arguments

detector

Detector object

Value

dead pixel mask

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 pixel mask
get_dead_pix_mask(detector_pilatus)

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