diameterPx

xripl.magnification.diameterPx(minimaIdxs)[source]

Obtains the diameter of the tube in pixels when given the tube edges. Tube edges are obtained using lineoutMinima().

Parameters

minimaIdxs (tuple) – A tuple of ints corresponding to the pixel positions of the two minima in intensity found in the radiograph by lineoutMinima(). These minima correspond to the inner edge of the target tube.