OrsReconstruction¶
Tool to reconstruct projection (CT) data
| author: | ORS Team, Stoyan Asenov, Zacharie Legault, Emmanuelle Richer |
|---|---|
| contact: | http://theobjects.com |
| email: | info@theobjects.com |
| organization: | Object Research Systems (ORS), Inc. |
| address: | 460 Ste-Catherine Ouest, suite 600, Montréal, Québec, Canada, H3B 1A7 |
| copyright: | Object Research Systems (ORS), Inc. All rights reserved 2021. |
| date: | Jun 11 2018 15:29 |
| dragonflyVersion: | |
| 4.0.0.542 (D) | |
| UUID: | 84da1d5ee44311e89d54448a5b5d70c0 |
Class Code¶
-
class
OrsPythonPlugins.OrsReconstruction.OrsReconstruction.OrsReconstruction(varname=None)¶ -
classmethod
OrsReconstruction_openToolbox()¶
-
UIDescriptors= [<ORSServiceClass.OrsPlugin.uidescriptor.UIDescriptor object>]¶
-
canImportFromPreview()¶
-
cleanup()¶ Deletes the variables managed by the plugin. It is the place to remove callbacks and other references to Python objects that would prevent them to be garbage collected. This method is called during the process of deletion of the plugin. It calls for the cleanup and deletion of the forms.
-
interfacemethod
computePreview(projectionStack, metadata, reconstructorEngineAlgorithmInstance, sliceIndex, preProcessor, progress=None)¶ Reconstruct projection for slice sliceIndex following the given reconstruction engine and pre processing workflow
Parameters: - projectionStack (ORSModel.ors.Channel) – input projection stack to be reconstruct
- metadata (transient Metadata) – the associated ct acquisition geometry
- reconstructorEngineAlgorithmInstance (transient AbstractReconstructor) – the instance of the reconstruction engine
- sliceIndex (int) – slice index
- preProcessor (transient CTPreProcessor) – pre processing filters workflow to be applied
- progress (ORSModel.ors.Progress) – an optional progress bar
Returns: - reconstructedOutputPreview (ORSModel.ors.Channel) – reconstructed preview
- err (str) – error message if an error occur
-
computePreviewAndPublish()¶ Reconstruct the input dataset from the set instance variables. If succeed, the reconstructed dataset will be published.
Returns: - succeed (bool) – true if the reconstruction and publish succeed, false otherwise.
- errorMessage (str) – detail of the error when an error occur.
-
createMetadataFromBeamType(beamType)¶
-
getAngularSamplingFactor()¶
-
getAvailableReconstructorEngineClassList()¶
-
getInputChannel()¶
-
getIsPreview(selectedChannel)¶
-
getIsValidParameters()¶
-
classmethod
getMainFormClass()¶ Gets the class of the main form
Returns: output –
-
getMetadata()¶
-
getPreProcessingFilterInstanceList()¶
-
getPreviewCount()¶
-
getSelectedReconstructorAlgorithmInstance()¶
-
getSupportedBeamTypes()¶
-
getTiltAngleFinderInstance()¶
-
getWidgetForSelectedReconstructorAlgorithm(parent=None)¶
-
classmethod
importAllLoggingClasses()¶ This method is called to make any class extension available for macro playing. It should:
- import all class extension;
- return a list of classes where logging is supported.
Returns: output (list of classes) – list of classes where logging is supported by the current plugin
-
keepAlive= False¶
-
multiple= False¶
-
interfacemethod
reconstruct(projectionStack, metadata, reconstructorEngineAlgorithmInstance, preProcessor, progress=None)¶ Reconstruct projection following the given reconstruction engine and pre processing workflow
Parameters: - projectionStack (ORSModel.ors.Channel) – input projection stack to be reconstruct
- metadata (transient Metadata) – the associated ct acquisition geometry
- reconstructorEngineAlgorithmInstance (transient AbstractReconstructor) – the instance of the reconstruction engine
- preProcessor (transient CTPreProcessor) – pre processing filters workflow to be applied
- progress (ORSModel.ors.Progress) – an optional progress bar
Returns: - reconstructedOutputVolume (ORSModel.ors.Channel) – reconstructed volume
- err (str) – error message if an error occur
-
interfacemethod
reconstructAndSaveAsTiff(projectionStack, metadata, reconstructorEngineAlgorithmInstance, preProcessor, outputFileDirectory)¶ Reconstruct projection following the given reconstruction engine and pre processing workflow, and sava the results on disk as tiff
Parameters: - projectionStack (ORSModel.ors.Channel) – input projection stack to be reconstruct
- metadata (transient Metadata) – the associated ct acquisition geometry
- reconstructorEngineAlgorithmInstance (transient AbstractReconstructor) – the instance of the reconstruction engine
- preProcessor (transient CTPreProcessor) – pre processing filters workflow to be applied
- outputFileDirectory (str) – output file directory
Returns: - succeed (bool) – succeed or not
- errorMessage (str) – error message
-
reconstructAndSaveOnDiskAsTiff(anOutputFileDirectory)¶
-
reconstructDatasetAndPublish()¶ Reconstruct the input dataset from the set instance variables. If succeed, the reconstructed dataset will be published.
-
rotationFinderWidgetClosed()¶
-
savable= False¶
-
setAngularSamplingFactor(angularSamplingFactor)¶
-
setAsPreview(previewChannel)¶
-
setInputChannel(aChannel)¶
-
setReconstructionEngineClass(anEngineClass)¶
-
setReconstructionPluginInstanceVariableFromSelectedPreview(selectedPreview)¶ Update reconstruction plugin instance from a selected preview (ORS Channel)
-
setReconstructorAlgorithmClass(anAlgoClass)¶
-
setReconstructorEngineInstance(aClass: OrsPythonPlugins.OrsReconstruction.algorithms.baseAlgorithm.AbstractReconstructor)¶
-
startRotationFinder()¶
-
classmethod
startupDefault(openMainForm=True)¶ Creates an instance of the plugin class and opens the main form (if required) at the default position.
Returns: output (AbstractPlugin) – plugin instance
-
supportedBeamTypes= ['Cone Beam', 'Parallel Beam']¶
-
classmethod
toolsMenu()¶
-
updatePreProcessingfilterInstanceListFromSelectedCTScan()¶
-
classmethod