FS VAL - Find Statistics - location of valleys and ridges

(12/13/14)

PURPOSE

Reports locations of minimum and maximum pixel along rows of an image and stores the locations in document file.

SEE ALSO

FS LOC [Find Statistics - location of min & max pixels]
RO I [Rotational average - 2D Image output]
RO SD [Rotational average - single line output, doc file]

USAGE

.OPERATION: FS VAL
[Find valleys/ridges.]

.INPUT FILE: IMG001
[Enter name of image file to be analyzed.]

.VALLEYS OR RIDGES? (VAL/RID): VAL
[Want to find valleys (minima) or a ridges (maxima)?]

.VALLEYS or RIDGES WANTED: 4
[Number of the valley/ridges wanted in document file. In this case the locations of the first four valleys are placed in the output doc file.]

.SEARCH NEIGHBORHOOD DISTANCE: 10
[Number of pixels within which a valley/ridge is unique. This unique distance is on both sides of the valley/ridge.]

.OUTPUT DOC FILE: DOC001
[Enter the name of the file where the results are saved The document file contains 6 columns:
Col. Contents
1 Row
3 Valley/ridge location
4 Value
5 Valley/ridge location
6 Value
.. ..

NOTES

  1. Does not work on volumes.

SUBROUTINES

FINDMINSORMAXS, OPFILES

CALLER

UTIL1