tomwer.tasks.reconstruction.cor.CoRTask#
- class tomwer.tasks.reconstruction.cor.CoRTask(*args, **kwargs)#
Task to compute the center of rotation of a scan.
- compute(scan, wait=True)#
Compute the position value for the scan
- Parameters:
scan
wait – used for threaded process. True if we want to end the computation before releasing hand.
- Return type:
- Returns:
scan as a TomoBase
- compute_axis_position(scan)#
- Parameters:
scan – scan for which we compute the center of rotation
- Return type:
float- Returns:
position of the rotation axis. Use the .AxisMode defined by the .ReconsParams of the .CoRTask
- static get_input_radios(scan)#
Make sure we have valid projections to be used for axis calculation
- Parameters:
scan – scan to check
- Raise:
NoAxisUrl if fails to found
- Return type:
tuple- Returns:
tuple of AxisResource
- static get_inputs(scan)#
- run()#
Compute the position value then get ready to the next. And call
Note
this simply call compute. But this is needed for the AxisProcessThreaded class