Differences between revisions 3 and 4
Revision 3 as of 2009-07-24 02:52:26
Size: 128
Editor: bcm-10-134
Comment:
Revision 4 as of 2010-05-05 19:55:07
Size: 582
Editor: gtang
Comment:
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:
||<35%><<TableOfContents>> ||
Line 3: Line 4:
||<35%><<TableOfContents>>||
Line 6: Line 6:

== 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.

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

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

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.

[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)