|
Tags: 2017 source edit, Replaced |
(24 intermediate revisions by the same user not shown) |
Line 4: |
Line 4: |
| <!-- ---------------------------- --> | | <!-- ---------------------------- --> |
| | | |
− | <!-- ---------------------------- -->
| + | {{documentation/banner |
− | {{documentation/{{documentation/version}}/module-section|Introduction and Acknowledgements}}
| + | | text = [http://slicer.readthedocs.io/en/latest/user_guide/modules/screencapture.html This page has been moved to read-the-docs.] |
− | {{documentation/{{documentation/version}}/module-introduction-start|{{documentation/modulename}}}}
| + | | background-color = 8FBC8F }} |
− | {{documentation/{{documentation/version}}/module-introduction-row}}
| |
− | This work was was funded by Cancer Care Ontario and the Ontario Consortium for Adaptive Interventions in Radiation Oncology (OCAIRO).<br>
| |
− | Author: Andras Lasso, PerkLab, Queen's University<br>
| |
− | Contact: Andras Lasso, <email>lasso@queensu.ca</email><br>
| |
− | {{documentation/{{documentation/version}}/module-introduction-row}}
| |
− | {{documentation/{{documentation/version}}/module-introduction-logo-gallery
| |
− | |{{collaborator|logo|sparkit}}|{{collaborator|longname|sparkit}}
| |
− | }}
| |
− | {{documentation/{{documentation/version}}/module-introduction-end}}
| |
− | | |
− | <!-- ---------------------------- -->
| |
− | {{documentation/{{documentation/version}}/module-section|Module Description}} | |
− | This module is for acquiring screen capture videos of Slicer viewers. The module can capture image sequences from slice and 3D views and export them as a sequence of images or a video file.
| |
− | | |
− | <!-- ---------------------------- -->
| |
− | {{documentation/{{documentation/version}}/module-section|Use Cases}}
| |
− | <gallery widths="200px" perrow="4">
| |
− | Image:CardiacCtReplay.gif|Video showing all slices of an image volume.
| |
− | Image:UltrasoundToolGuidance3dOnly.gif|Video fading between two images.
| |
− | Image:ShapeModelSequenceBrowsing3dOnly.gif|Video of rotating 3D view.
| |
− | Image:SequenceEditor.png|video of a time sequence in slice or 3D view.
| |
− | </gallery>
| |
− | <!-- ---------------------------- -->
| |
− | {{documentation/{{documentation/version}}/module-section|Panels}}
| |
− | * '''Input'''
| |
− | ** '''View to capture:''' select slice or 3D view that the content will be captured of
| |
− | ** '''Animation mode:'''
| |
− | *** 3D rotation: Acquire video of a rotating 3D view (for 3D viewer only). For smooth repeated display of a 360-degree rotation it is recommended to choose 31 or 61 as "Number of images".
| |
− | *** slice sweep: Acquire video while going through selected range of image frames (for slice viewer only).
| |
− | *** slice fade: Acquire video while fading between the foreground and background image (for slice viewer only).
| |
− | *** sequence: Acquire video while going through items in the selected sequence browser. Requires installation of [[documentation/{{documentation/version}}/Extensions/Sequences|Sequences]] extension.
| |
− | * '''Output'''
| |
− | ** '''Number of images:''' Defines how many frames are generated in the specified range. Higher number results in smoother animation but larger video file.
| |
− | ** '''Output directory:''' Image frames or video file will be saved in this directory.
| |
− | ** '''Video export:''' If checked then exported images are converted to a single video file in the selected format. Requires [[#setting up ffmpeg|ffmpeg]].
| |
− | *** H264: modern compressed video format, compatible with most contemporary video players.
| |
− | *** MPEG4: commonly used compressed video format, mostly compatible with older video players.
| |
− | *** Animated GIF: file format that provides lower quality images but allows embedding animations into webpages as simple images.
| |
− | * '''Advanced'''
| |
− | ** '''ffmpeg executable:''' Path to ffmpeg executable. Requires download and installation of [[#setting up ffmpeg|ffmpeg]]. Only needed if video export is selected.
| |
− | ** '''Video extra options:''' Options for ffmpeg that controls video format and quality. Only needed if video export is selected.
| |
− | ** '''Image file name pattern:''' Defines image file naming pattern. %05d will be replaced by the image number (5 numbers, padded with zeros). Only needed if video export is not selected.
| |
− | === Setting up ffmpeg ===
| |
− | FFmpeg library is not packaged with 3D Slicer due to licensing restrictions. The FFmpeg library has to be downloaded and set up only once and 3D Slicer will remember its location.
| |
− | * '''Windows''' setup instructions
| |
− | ** Download ffmpeg from here: https://ffmpeg.org/download.html (click Windows icon, select a package, for example 'Download FFmpeg64-bit static')
| |
− | ** Extract downloaded package (for example, to ''C:\Users\Public'')
| |
− | ** Select ffmpeg.exe in Advanced section, ''fmpeg executable'' (for example, ''C:\Users\Public\ffmpeg-20160912-bc7066f-win32-static\bin\ffmpeg.exe'')
| |
− | * '''MacOS''' setup instructions
| |
− | ** Install homebrew (from http://brew.sh/)
| |
− | ** Run: "brew install ffmpeg"
| |
− | ** Select ''/usr/local/bin/ffmpeg'' in Advanced section, ''fmpeg executable''
| |
− | | |
− | <!-- ---------------------------- -->
| |
− | {{documentation/{{documentation/version}}/module-section|References}}
| |
− | | |
− | <!-- ---------------------------- -->
| |
− | {{documentation/{{documentation/version}}/module-section|Information for Developers}}
| |
− | | |
− | <!-- ---------------------------- -->
| |
− | {{documentation/{{documentation/version}}/module-footer}}
| |
− | <!-- ---------------------------- -->
| |