HOME GUIDE OPERATIONS DOCS FAQ TECHNIQUES FORMATS INSTALL NEW TIPS WEB LINKS WADSWORTH

MO - Model image creation

(10/09/07)

PURPOSE

Creates a model image. The following options are available:
1. Constant density
2. Circle of specified radius
3. Diagonal sine wave of frequency (2,2)
4. Test pattern consisting of specified sine waves
5. Gaussian density distribtuion
6. Random pattern with uniform distribution
7. Random pattern with Gaussian distribution
8. Wedge

SEE ALSO

MO 3 [Model volume creation]
BL [Create Blank image]
PT [Create Pattern or mask file]
PP [Put Points in image - from terminal]
PP L [Put Points in image - from Document file Listing]

USAGE

.OPERATION: MO

.OUTPUT FILE: MOD001
[Enter the name of the output file.]

.ENTER DIMENSIONS (NSAM,NROW): 64,64
[Enter the dimensions of the image in the output file.]

[Following menu appears.]

.MENU:

(B)LANK -- BLANK IMAGE
(C)IRCLE -- FILLED CIRCLE
(G)AUSSIAN -- GASUSIAN DENSITY DISTRIBUTION
(R)ANDOM -- RANDOM UNIFORM/GAUSSIAN STATISTICS
(S)INE -- SET OF SINE WAVES
(T)EST -- 2D SINE WAVE
(W)EDGE -- DENSITY WEDGE

.ENTER B/C/R/S/T/W: T
[Enter the desired option.]

For Option "B" -Blank Image

.BACKGROUND CONSTANT: 12.0
[Enter the desired intensity for the image.]

For Option "C" - Circle

.RADIUS (FLOATING POINT): 12.0
[Enter the desired radius of the circle. Any floating point number between 0.0 and SQRT[(NSAM/2)**2 + (NROW/2)**2] may be specified.]

[The output file will then contain a circle of specified radius filled with pixel values of 2.0, and a blank (pixel value 0.0) background.]

For Options "G" - Gaussian distribution
A 2D Gaussian density distribution is created. The normalization is such that the sum of all the pixels densities is equal one.

.COORDINATES OF THE CENTER: 12,23.12

.STD. DEVIATIONS X,Y: 4.2
[Enter the standard deviations for Gaussian function.]

For Option "R" - Random

.GAUSSIAN DISTRIBUTION? (Y/N): N
[For 'N' a random image with the values uniformly distributed between 0 and 1 is generated. If 'Y' was specified, SPIDER will ask following question:]

.MEAN AND STANDARD DEVIATION OF GAUSSIAN DIST.: 0.0, 0.35
[Enter the mean value and standard deviation of the Gaussian distribution for random numbers to be generated.]

For Option "S" - Sine waves

.NUMBER OF SINE WAVES: 2
[Enter the number of sine waves to be added together. The maximum is 20.]

.I=1 AMPLITUDE, PHASE, SP. FREQUENCY (KX,KY): 1.0,45.,1,10
[Enter the amplitude and phase of the first sine wave, and its X and Y frequencies, respectively.]

.I=2 AMPLITUDE, PHASE, SP. FREQUENCY (KX,KY): 2.5,90., -2,5
[Enter the relative amplitude and phase of the second sine wave, and its X and Y frequencies, respectively.]

[The output file will now contain an image of the specified size, which is the sum of two sine waves, of specified amplitudes and phases, one of X-frequency 1 and Y-frequency 10, and the other of X-frequency -2 and Y-frequency 5. Note that the amplitudes and phases must be given as floating point numbers.]

For Option "T" - TEST
[The output file will contain a test sine wave of specified size and spatial frequency: (2,2), i.e. a diagonally-running sine wave with two full periods. Intensity is: -1.0... 1.0 ]

For Option "W" - Wedge
The output file will contain a density wedge of specified size with intensity 0.0 ... 1.0 ]

SUBROUTINES

MODEL, BLANK

CALLER

UTIL1

© Copyright Notice /       Enquiries: spider@wadsworth.org

BACK TO SPIDER BACK TO WADSWORTH