lineoutsComparison2

xripl.visualizations.lineoutsComparison2(imgDenoised, imgFlat, px, extent=None, showFlag=True)[source]

Compares pseudo-flatfielded lineout against denoised lineout. Pseudo-flatfielded lineout typically includes cleaning via morphological filtering, which can distort the image, whereas denoising is done through median filtering, which typically preserves features. This means this comparison is important for showing whether features are preserved through the morphological filtering step and whether the pseudo-flatifield suitably flattens the intensity curve compared to what we expect. In addition, this overlays expected tube positions for Marble VC 16A target.

imgDenoisednumpy.ndarray

Denoised (median filtered) radiographic image.

imgFlatnumpy.ndarray

Pseudo-flatfielded image (using over-blurring).

pxint

Pixel position at which to take the lineouts.

extentlist

Extents defining spatial axes. Used to form radial axis in um. Default is None, which falls back on radial axis in pixels.

showFlagbool

Flag for showing the plotted image. Set to False if you want to further modify the plot. Default is True.