Size: 1140
Comment:
|
Size: 1298
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 22: | Line 22: |
extract a subset of particles from a BDB database and convert to HDF format {{{ e2proc2d.py bdb:particles#stack1 newfile.hdf --first=100 --last=150 }}} |
e2proc2d
Generic 2-D image processing program. The main tasks this program can be used for are:
- Convert images from one format to another
- Perform basic image processing operations such as filters, masks, normalization, etc.
- Resize/rescale images
- Select subsets of image stacks
This program operates on both single 2-D image files, image stacks, and EMAN2 BDB databases. It has many command-line options for specific tasks. The generic '--process' option is by far the most powerful, offering access to 180+ different image processing operations (for a list, type e2help.py processors).
For specific details on various options, use e2proc2d.py --help.
Examples
convert IMAGIC format test.hed to HDF format:
e2proc2d.py test.hed test.hdf
extract a subset of particles from a BDB database and convert to HDF format
e2proc2d.py bdb:particles#stack1 newfile.hdf --first=100 --last=150
apply a 10 A low-pass filter to a stack of particles and write output to a new file.
e2proc2d.py ptcl.hdf ptcl.filt.hdf --process=filter.lowpass.gauss:cutoff_freq=0.1
invert the contrast in a BDB database. Overwrite the original images
e2proc2d.py bdb:particles#set1 bdb:particles#set1 --inplace --mult=-1