plot_module_pixels: A function to plot detector module with damaged pixels

View source: R/analysis.R

plot_module_pixelsR Documentation

A function to plot detector module with damaged pixels

Description

A function to plot detector module with damaged pixels

Usage

plot_module_pixels(detector, col, row, file_path = NA, caption = TRUE)

Arguments

detector

Detector object

col

Module column number

row

Module row number

file_path

Output file path

caption

Flag to turn on/off figure caption

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)
plot_module_pixels(detector_pilatus, 1, 1)

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