This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>dcmjs-example - iodide</title> | |
| <link rel="stylesheet" type="text/css" href="https://iodide.io/stable/iodide.stable.css"> | |
| </head> | |
| <body> | |
| <script id="jsmd" type="text/jsmd"> | |
| %% meta |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # create classes defining the behavior of each step | |
| # | |
| class sInitial(ctk.ctkWorkflowWidgetStep, ) : | |
| """Initial state of the MRRobot workflow""" | |
| def __init__(self, stepid, workflowWidget): | |
| self.initialize(stepid) | |
| self.workflowWidget = workflowWidget | |
| self.setName( 'Create or load a case' ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| et install libqt5webchannel5-dev | |
| 63 rm -rm * | |
| 64 rm -rf * | |
| 65 ~/Support/cmake-3.13.4-Linux-x86_64/bin/cmake ../slicer/ | |
| 66 rm -rf * | |
| 67 apt-file search Qt5WebEngineWidgetsConfig.cmake | |
| 68 sudo apt-get install qtwebengine5-dev | |
| 69 ~/Support/cmake-3.13.4-Linux-x86_64/bin/cmake ../slicer/ | |
| 70 rm -rf * | |
| 71 apt-file search Qt5XmlPatternsConfig.cmake |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <meta | |
| name="description" | |
| content="Open Health Imaging Foundation DICOM Viewer" | |
| /> | |
| <meta |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Copyright Steve Pieper | |
| # https://github.com/Slicer/Slicer/blob/master/License.txt | |
| # Demo video: https://youtu.be/xcQKj4yp2nw | |
| """ | |
| exec(open('/Users/pieper/slicer/latest/SlicerTMSGuide/guide.py', 'r').read()) | |
| """ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| pip_install("open3d") | |
| rename "/c/Program\ Files/Azure\ Kinect\ SDK\ v1.4.0/tools/k4a.dll" by changing 1.4 to 1.2 | |
| path="c:/pieper/facenav/facenav.py" | |
| exec(open(path).read()) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import shutil | |
| archiveFilePath = os.path.join(slicer.app.temporaryPath, "master.zip") | |
| outputDir = os.path.join(slicer.app.temporaryPath, "SlicerImageStacks") | |
| try: | |
| os.remove(archiveFilePath) | |
| except FileNotFoundError: | |
| pass |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pieper@hive Slicer-build % time make package | |
| [ 0%] Built target ExtensionWizard-Resources | |
| [ 0%] Built target SlicerPythonResources | |
| [ 3%] Built target CopySlicerPythonScriptFiles | |
| [ 3%] Built target CompileSlicerPythonFiles | |
| [ 9%] Built target CopySlicerPythonResourceFiles | |
| [ 12%] Built target SlicerData | |
| [ 12%] Configuring vtkSlicerVersionConfigure.h | |
| -- Configuring Slicer release type [Experimental] | |
| -- Found Git: /usr/local/bin/git |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| comment = """ | |
| You can use this script with either Slicer's python wrapped VTK or with pip installed VTK like this: | |
| ~/Downloads/Slicer-4.13.0-2021-06-18-linux-amd64/bin/PythonSlicer vr-depth-crop.py | |
| python vr-depth-crop.py | |
| """ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| Install wgpu as described here: https://github.com/pygfx/wgpu-py | |
| Tested with Slicer 5.0.2 and wgpu 537c3eab68e9eef77681fc5545532380df26d8cc (basically 0.8.1) | |
| exec(open("./slicer-compute.py").read()) | |
| """ |