tomwer.gui.reconstruction.axis.AxisWidget#

class tomwer.gui.reconstruction.axis.AxisWidget(axis_params, parent=None, backend=None)#

Main widget for the computing the rotation axis.

It contains: * CompareImages widget as the central widget to display two opposite radios once shifted (and flip) with the cor found * A control widget on the left to select the algorithm to be applied, algorithm options…

Raises:

ValueError – given axis is not an instance of _QAxisRP

clear()#
getAxisParams()#
getEstimatedCor()#
getImgSubSampling()#
getMode()#
getPlot()#
getROIDims()#
getROIOrigin()#
getShiftStep()#
getXShift()#
getYShift()#
isModeLock()#
manual_uses_full_image(value)#
resetShift()#
setEstimatedCor(value)#
setImages(imgA, imgB, flipB)#
Warning:

does not reset the shift when change images

Parameters:
  • imgA (array) – first image to compare. Will be the one shifted

  • imgB (array) – second image to compare

  • flipB (bool) – True if the image B has to be flipped

setLocked(locked)#
setMode(mode)#

Define the mode to use for radio axis

Parameters:

mode

Returns:

setModeLock(mode)#
setReconsParams(axis)#
Parameters:

axis (QAxisRP) – axis to edit

Returns:

setScan(scan)#

Update the interface concerning the given scan. Try to display the radios for angle 0 and 180.

Parameters:

scan – scan for which we want the axis updated.

setShiftStep(value)#
setUpdateAutomaticallyEstimatedCor(value)#
setXShift(x)#
setYShift(y)#
sigAxisEditionLocked#

Signal emitted when the status of the reconstruction parameters edition change

sigLockModeChanged#

signal emitted when the lock on the mode change

sigPositionChanged#

signal emitted when the center of rotation center change

updateAutomaticallyEstimatedCor()#