Skip to content

Commit

Permalink
ENH: Ensure RAS to LPS flips are enabled by default
Browse files Browse the repository at this point in the history
  • Loading branch information
NicerNewerCar committed Mar 18, 2024
1 parent 0591add commit 71c20a0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
9 changes: 0 additions & 9 deletions AutoscoperM/AutoscoperMLib/IO.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,17 +159,8 @@ def writeVolume(volumeNode: slicer.vtkMRMLVolumeNode, filename: str):
:param volumeNode: Volume node
:param filename: Output file name
"""
# tfm = vtk.vtkMatrix4x4()
# tfm.Identity()
# tfm.SetElement(0, 0, -1)
# tfm.SetElement(1, 1, -1)
# transformNode = slicer.vtkMRMLLinearTransformNode()
# transformNode.SetMatrixTransformToParent(tfm)
# slicer.mrmlScene.AddNode(transformNode)
slicer.util.exportNode(volumeNode, filename, {"useCompression": False}, world=True)

# slicer.mrmlScene.RemoveNode(transformNode)


def castVolumeForTIFF(volumeNode: slicer.vtkMRMLVolumeNode):
"""
Expand Down
8 changes: 7 additions & 1 deletion AutoscoperM/Resources/UI/AutoscoperM.ui
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@
<item row="3" column="2" colspan="2">
<widget class="QLineEdit" name="cameraSubDir">
<property name="enabled">
<bool>true</bool>
<bool>false</bool>
</property>
<property name="text">
<string>Calibration</string>
Expand Down Expand Up @@ -726,6 +726,9 @@
<property name="text">
<string>Flip Y</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item row="0" column="3">
Expand Down Expand Up @@ -760,6 +763,9 @@
<property name="text">
<string>Flip X</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item row="0" column="2">
Expand Down

0 comments on commit 71c20a0

Please sign in to comment.