glm_pixel_ctr_eucl: Predict dead pixels from the pixel's euclidean distance from...

View source: R/analysis.R

glm_pixel_ctr_euclR Documentation

Predict dead pixels from the pixel's euclidean distance from the detector center

Description

Fit a logistic regression model using glm. Predicts dead pixels from the pixel's euclidean distance from the detector center

Usage

glm_pixel_ctr_eucl(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_eucl(detector_pilatus)

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