Load img stack: Difference between revisions
Jump to navigation
Jump to search
(created) |
PedroLacerda (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
{{Infobox script-repo | {{Infobox script-repo | ||
|type = script | |type = script | ||
|filename = load_img_stack.py | |filename = scripts/load_img_stack.py | ||
|author = [[User:Speleo3|Thomas Holder]] | |author = [[User:Speleo3|Thomas Holder]] | ||
|license = BSD-2-Clause | |license = BSD-2-Clause | ||
Line 32: | Line 32: | ||
[[Category:Script_Library]] | [[Category:Script_Library]] | ||
[[Category:Pymol-script-repo]] |
Latest revision as of 23:58, 22 June 2025
Type | Python Script |
---|---|
Download | scripts/load_img_stack.py |
Author(s) | Thomas Holder |
License | BSD-2-Clause |
This code has been put under version control in the project Pymol-script-repo |
This script adds the load_img_stack command, which loads a set of images as a map object. The images can either be individual files, or contained in a multi-page TIFF file.
Usage
load_img_stack pattern [, name [, grid [, channel [, normalize [, extent ]]]]]
Arguments
- pattern = str: image filename or pattern
- name = str: map object name to create
- grid = float: grid spacing in Angstrom {default: 1.0}
- channel = int: color channel for RGB images {default: 0}
- normalize = 0 or 1: normalize data {default: 1}
- extent = 3-float: (a,b,c) edge lengths in Angstrom, overwrites "grid" arguments if given {default: }
Example
load_img_stack img*.png, name=map, extent=(10.0, 10.0, 5.0) volume vol, map, rainbow