Differences between revisions 4 and 5
Revision 4 as of 2010-05-05 19:55:07
Size: 582
Editor: gtang
Comment:
Revision 5 as of 2010-05-05 20:02:46
Size: 693
Editor: gtang
Comment:
Deletions are marked like this. Additions are marked like this.
Line 8: Line 8:
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. 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.
Line 13: Line 13:

e2proc2d

See e3boxer Tips and Tricks for more.

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.

[someone@localhost]$e2proc2d.py --mrc16bit float-image.mrc short-image.mrc

[someone@localhost]$e2proc2d.py --mrc8bit float-image.mrc byte-image.mrc

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