tomwer.gui.reconstruction.axis.radioaxis.RadioAxisWindow#

class tomwer.gui.reconstruction.axis.radioaxis.RadioAxisWindow(axis, parent=None, backend=None)#

QMainWindow for defining the rotation axis

Raises:

ValueError – given axis is not an instance of _QAxisRP

clear()#
getEstimatedCor()#
getImgSubsampling()#
getPlot()#
getROIDims()#
getROIOrigin()#
getSettingsWidget()#
getSettingsWidgetDocker()#
isModeLock()#
manual_uses_full_image(value)#
resetShift()#
setEstimatedCor(value)#
setImages(imgA, imgB, flipB)#
Warning:

does not reset the shift when change images

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

  • imgB (numpy.array) – second image to compare

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

  • paganin (bool) – True to apply paganin phase retrieval

setLocked(locked)#
setMode(mode)#

Define the mode to use for radio axis

Parameters:

mode

Returns:

setReconsParams(axis)#
Parameters:

axis (AxisRP) – 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 (Union[str, tomwer.core.scan.TomoBase]) – scan for which we want the axis updated.

setUpdateAutomaticallyEstimatedCor(value)#
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()#