get_dead_stats | R Documentation |
Generate summary of damaged pixels and add as a dead_stats attribute to the detector object
get_dead_stats(detector)
detector |
Detector object |
Detector object with dead_stats attribute
# 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_stats
detector_pilatus <- get_dead_stats(detector_pilatus)
# Print dead stats
print(detector_pilatus$dead_stats)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.