load_pix_matrix: A function to load pixel data and set as attribute on a...

Description Usage Arguments Value Examples

View source: R/io.R

Description

A function to load pixel data and set as attribute on a detector

Usage

1
load_pix_matrix(detector, file_path)

Arguments

detector

The name of the detector object to be used

file_path

Path(s) to the file(s) containing dead pixel information

Value

Detector object

Examples

1
2
3
4
5
6
7
# 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)

alan-turing-institute/DetectorChecker documentation built on Jan. 3, 2021, 10:37 a.m.