Region of Interest (ROI)¶
Nexus event files contain Processing Variables (PV) as metadata. The following PV’s define two rectangular regions of interest (ROI) in the detector to limit the ranges of the peak and background regions in the detector:
ROI1StartX,ROI1SizeX,ROI1StartY, andROI1SizeYdefine the region enclosing the peakROI2StartX,ROI2SizeX,ROI2StartY, andROI2SizeYdefine the background region for the peak
There are two valid ROI configurations, as shown in the following picture:
In configuration (a), the peak region is defined by ROI1 and the background region is defined by ROI2.
The regions don’t overlap.
In configuration (b), the background region used for reduction will be the region of ROI2
that doesn’t overlap with ROI1 (the region shaded in green).
This type of background is termed as “side background”.
When the experiments contains multiple reflected peaks, additional PV’s are used:
ROI3StartX,ROI3SizeX,ROI3StartY, andROI3SizeYdefine the region enclosing the second peakROI4StartX,ROI4SizeX,ROI4StartY, andROI4SizeYdefine the background region for the second peakROI5StartX,ROI5SizeX,ROI5StartY, andROI5SizeYdefine the region enclosing the third peakROI6StartX,ROI6SizeX,ROI6StartY, andROI6SizeYdefine the background region for the third peak