fsleyes.actions.saveflirtxfm¶
This module provides the SaveFlirtXfmAction class, an
Action which allows the user to save an Image
transformation to disk for use with FLIRT.
-
class
fsleyes.actions.saveflirtxfm.SaveFlirtXfmAction(overlayList, displayCtx, frame)¶ Bases:
fsleyes.actions.base.NeedOverlayActionThe
SaveFlirtXfmActionclass is anActionwhich allows the user to save anImagetransformation to disk, either as a FLIRT matrix, or a voxel-to-world matrix.-
__init__(overlayList, displayCtx, frame)¶ Create a
SaveFlirtXfmAction.- Parameters
overlayList – The
OverlayList.displayCtx – The
DisplayContext.frame – The
FSLeyesFrame.
-
destroy()¶ Must be called when this
SaveFlirtXfmActionis no longer needed.
-
_SaveFlirtXfmAction__saveFlirtXfm()¶ Called when this action is executed. Prompts the user to save a FLIRT transform for the currently selected image.
-
__module__= 'fsleyes.actions.saveflirtxfm'¶
-
-
fsleyes.actions.saveflirtxfm.calculateTransform(overlay, overlayList, displayCtx, refFile, srcXform=None)¶ Calculates and returns FLIRT transformation from the given
overlayto the image specified by the givenrefFile.