glm_pixel_ctr_linf: Predict dead pixels from the pixel's parallel maxima

View source: R/analysis.R

glm_pixel_ctr_linfR Documentation

Predict dead pixels from the pixel's parallel maxima

Description

Fit a logistic regression model using glm. Predicts dead pixels from the pixel's parallel maxima

Usage

glm_pixel_ctr_linf(detector)

Arguments

detector

Detector object

Value

Fitted model

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)
# Fit logistic regression model
glm_pixel_ctr_linf(detector_pilatus)

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