HOME GUIDE OPERATIONS DOCS ERRORS FORMATS INSTALL NEW TIPS WEB SITES

MO - MOdel image creation

(4/18/97)

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. Random pattern with uniform distribution
6. Random pattern with Gaussian distribution
7. Wedge

SEE ALSO

MO 3 [Model volume creation]
BL [Blank image creation]
PT [Create a pattern]
PP L [Put lines in image]

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
(Q)UICK -- RANDOM UNIFORM/GAUSSIAN STATISTICS
(R)ANDOM -- RANDOM UNIFORM/GAUSSIAN STATISTICS
(S)INE -- SET OF SINE WAVES
(T)EST -- 2D SINE WAVE
(W)EDGE -- DENSITY WEDGE

.ENTER B/C/Q/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 radius 12.0 (filled with pixel values of 2.0, and a blank (pixel value 0.0) background.]

For Option "Q" - Quick 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]

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

[The random generator is the faster one of the two, yet in power of 2 images random generator creates image with a noisy, sine-shaped periodicity in the power spectrum. If the frequency distribution of the noise is critical option 'R' should be used.]

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, gaussian distributed noise with 0.0 mean and standard deviation 1.0 is created.

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 a 64 x 64 image, 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 size 64 x 64 and spatial frequency (2,2), i.e. a diagonally-running sine wave with two full periods.

For Option "W" - Wedge
The output file will contain a density wedge of size 64 x 64.

SUBROUTINES

MODEL, MRAND, BLANK

CALLER

UTIL1

© Copyright Notice /       Enquiries: spider@wadsworth.org