Differences between revisions 24 and 25
Revision 24 as of 2008-10-18 22:08:23
Size: 1641
Comment:
Revision 25 as of 2008-11-26 04:42:29
Size: 1665
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
[[TableOfContents]] <<TableOfContents>>
Line 21: Line 21:
||attachment:xcoord.png ||attachment:ycoord.png|| ||{{attachment:xcoord.png}} ||{{attachment:ycoord.png}}||
Line 23: Line 23:
||attachment:axes.png|| attachment:circle.png || ||{{attachment:axes.png}}|| {{attachment:circle.png}} ||
Line 25: Line 25:
||attachment:scurve.png|| attachment:gaussnoise_large.png|| ||{{attachment:scurve.png}}|| {{attachment:gaussnoise_large.png}}||

Contents

  1. 2D
  2. 3D

2D

EMAN2 includes a good selection of test images that can be generated in no time at all. They come in many shapes and forms, from simple gradients and shapes to basic noise models. To create a test image start by running e2.py and by creating an empty image that is appropriately sized, for example as follows:

#] e2.py

Welcome to EMAN2
Prompt provided by IPython
Enter '?' for ipython help

In [3]: e = EMData()

In [4]: e.set_size(256,256)

Then issue one of the commands shown below in the table to generate the test image

xcoord.png

ycoord.png

 e.process_inplace("testimage.gradient")

 e.process_inplace("testimage.gradient", {'axis','y'}) 

axes.png

circle.png

 e.process_inplace("testimage.axes")

 e.process_inplace("testimage.circlesphere") 

scurve.png

gaussnoise_large.png

 e.process_inplace("testimage.scurve")

 e.process_inplace("testimage.noise.gauss") 

Note that this is not all of the test images, and that you can get a complete list by typying e2help.py processors on the command prompt (or see http://blake.bcm.edu/eman2/processors.html). Finally, you can display the image

In [5]: e.process_inplace("testimage.scurve")

In [6]: display(e)

You can write the image to disk if you need to:

In [7]: e.write_image("scurve.img")

In [8]: e.write_image("scurve.mrc")

Also, a great many of the test images work on 3D (and 1D) images, so feel free to play around.

3D

To come

EMAN2/Galleries/Testimages (last edited 2009-04-11 00:48:59 by DavidWoolford)