Differences between revisions 5 and 6
Revision 5 as of 2010-05-05 20:02:46
Size: 693
Editor: gtang
Comment:
Revision 6 as of 2010-09-14 12:44:52
Size: 1140
Editor: SteveLudtke
Comment:
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:
||<35%><<TableOfContents>> ||
Line 4: Line 3:
Generic 2-D image processing program. The main tasks this program can be used for are:
Line 5: Line 5:
See [[EMAN2/Programs/e2boxer#tipsandtricks|e3boxer Tips and Tricks]] for more.  * 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
Line 7: Line 10:
== Convert MRC image's storage type ==
By default, the image will be saved as float type, i.e., 4 bytes (16 bit) for each pixel. For MRC format, we can save image as short (2 bytes/16bit) or byte. e2proc2d.py provide options to convert mrc image between these storage types. The following example is for 2D mrc image. You can do similar conversion to 3D mrc image by calling e2proc3d.py.
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'').
Line 10: Line 14:
For specific details on various options, use ''e2proc2d.py --help''.

=== Examples ===
convert IMAGIC format test.hed to HDF format:
Line 11: Line 19:
[someone@localhost]$e2proc2d.py --mrc16bit float-image.mrc short-image.mrc e2proc2d.py test.hed test.hdf
Line 13: Line 21:

apply a 10 A low-pass filter to a stack of particles and write output to a new file.
Line 14: Line 24:
[someone@localhost]$e2proc2d.py --mrc8bit float-image.mrc byte-image.mrc e2proc2d.py ptcl.hdf ptcl.filt.hdf --process=filter.lowpass.gauss:cutoff_freq=0.1
Line 16: Line 26:

invert the contrast in a BDB database. Overwrite the original images
{{{
e2proc2d.py bdb:particles#set1 bdb:particles#set1 --inplace --mult=-1
}}}

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           

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

EMAN2/Programs/e2proc2d (last edited 2016-10-20 14:06:05 by SteveLudtke)