slope measurement from contour maps

7
CHAN M. PARK* YUNG H. LEE* BERNARD B. SCHEPS~ University of Maryland College P a r k , Md. 20740 Slope Measurement from Contour Maps Approximate slope computation from a digital map is feasible at reasonable computer times. INTRODUCTION RELATED PRIORWORK C ONTOUR MAPS of many kinds are pro- Fischer' has tested an optical-mechanical duced to describe spatially distributed method of producing a slope map from a data. Such maps contain isolines, which are given contour map. He used a positive and a the loci of points at which some measured negative transparency of the contour sheet quantity takes on a given discrete set of separated by a diffusing transparency (semi- values. For example, in a topographic con- matte translucent acetate). An eccentric turn- tour map, the isolines are lines of equal ter- table was constructed and used to nutate the rain elevation; in a weather map, they may positive transparency relative to the nega- be lines of equal pressure (isobars), temper- tive a t a given nutation radius.$ A controlled, ABSTRACT: This paper describes two methods of estimating slope gradients from a digitized contour map. The first methpd uses amount of contour line per unit area as a slope measure, whereas the* ~ c o n d computes slope by measuring dis- tances to nearest contour lines. Both"methods have been implemented in PAX I1 on the Univac 1108 computer. ature (isotherms), rainfall (isohyets), etc.; diffuse light source illuminated the trans- and in other examples they may represent parencies from below, and a camera, mounted any of a wide variety of data (stress, magnetic above, recorded the results in a time exposure variation, radiation, etc.). taken over a period of one or more complete Users of contour maps often desire to nutations. I t is evident that in this arrange- know the rate of change (i.e., first derivative, ment, more light will pass through a region or slope) of the data. Calculation of slope having many contour lines per unit area than along a particular path is a straightforward through a region having few or none. Because matter. I t is less trivial, however, to deter- slope is also high where there are many con- mine the slope gradient (i.e., the maximum tours per unit area, the photographic re- slope in any direction) at a point, let alone cording can thus be regarded as a slope map. a t all points of a region. This paper describes It is a fairly straightforward matter to cali- computer programs which measure, "in brate this system so as to be able to convert parallel," approximations to the slope gra- any density on the photograph into an dient at all points of a digitized map, so as to equivalent number of lines per unit area yield a slope map of the given region. An example of the results obtained by this method is shown in Figure 1. * Computer Science Center, University of Mary- $ Fischer suggested that the nutation radius land. should be CIS, where C is the contour interval i. Army Engineer Topographic Laboratories, Ft. divided by the scale of the map, and S is the small- Belvoir, Virginia. est slope to be detected.

Upload: others

Post on 16-Oct-2021

9 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Slope Measurement from Contour Maps

C H A N M . P A R K * Y U N G H . LEE*

B E R N A R D B . S C H E P S ~ University of M a r y l a n d

College P a r k , Md. 20740

Slope Measurement from Contour Maps Approximate slope computation from a digital map is feasible at reasonable computer times.

INTRODUCTION RELATED PRIOR WORK

C ONTOUR MAPS of many kinds are pro- Fischer' has tested a n optical-mechanical duced t o describe spatially distributed method of producing a slope map from a

data . Such maps contain isolines, which are given contour map. H e used a positive and a the loci of points a t which some measured negative transparency of the contour sheet quant i ty takes on a given discrete set of separated by a diffusing transparency (semi- values. For example, in a topographic con- mat te translucent acetate). An eccentric turn- tour map, the isolines are lines of equal ter- table was constructed and used t o nutate the rain elevation; in a weather map, they may positive transparency relative t o the nega- be lines of equal pressure (isobars), temper- tive a t a given nutation radius.$ A controlled,

ABSTRACT: T h i s paper describes two methods of estimating slope gradients f rom a digitized contour m a p . The first methpd uses amount of contour l ine per uni t area as a slope measure, whereas the* ~ c o n d computes slope b y measuring dis- tances to nearest contour lines. Both"methods have been implemented in P A X I1 o n the Univac 1108 computer.

a ture (isotherms), rainfall (isohyets), etc.; diffuse light source illuminated the trans- and in other examples they may represent parencies from below, and a camera, mounted any of a wide variety of d a t a (stress, magnetic above, recorded the results in a time exposure variation, radiation, etc.). taken over a period of one or more complete

Users of contour maps often desire to nutations. I t is evident t h a t in this arrange- know the rate of change (i.e., first derivative, ment, more light will pass through a region or slope) of the data . Calculation of slope having many contour lines per unit area than along a particular path is a straightforward through a region having few or none. Because matter. I t is less trivial, however, to deter- slope is also high where there a re many con- mine the slope gradient (i.e., the maximum tours per unit area, the photographic re- slope in a n y direction) a t a point, let alone cording can thus be regarded a s a slope map. a t all points of a region. This paper describes I t is a fairly straightforward matter t o cali- computer programs which measure, "in brate this system so as t o be able t o convert parallel," approximations t o t h e slope gra- a n y density on the photograph into a n dient a t all points of a digitized map, so as t o equivalent number of lines per uni t area yield a slope m a p of the given region. An example of the results obtained by this

method is shown in Figure 1.

* Computer Science Center, University of Mary- $ Fischer suggested that the nutation radius land. should be CIS, where C is the contour interval

i. Army Engineer Topographic Laboratories, Ft. divided by the scale of the map, and S is the small- Belvoir, Virginia. est slope to be detected.

Page 2: Slope Measurement from Contour Maps

FIG. 1. Fischer's nutation method. Input contour[map (top) and Output slope map (bottom).

Monmonier, Pfaltz and Rosenfeld2 re- ported a computer program called SAMP which estimated surface area from a contour map. T o arrive a t area, the program first computed slope a t each point by determining distances to the nearest contours in two orthogonal directions. Different procedures were used depending on whether or not the given point was itself on a contour line, and on whether or not another contour line existed in one or both directions within a specified distance (after which the terrain

was regarded as flat). The slope computation also depended on whether the contours reached were the same or different. The methods reported in this paper are simpler in tha t they consider only distances between contours (whether the same or different), and do not give special treatment to points on contours. On the other hand, the present methods provide map output, which SAMP did not. Figure 2 shows a digital contour map which was used as input to both the SAMP program and the programs reported

Page 3: Slope Measurement from Contour Maps

SLOPE MEASUREMENT FROM CONTOUR MAPS 279

. c 1 ?

7 1 72 1 2 1 2 I 1 I

hereinafter: one picture element on this map h : >2

2 I 2 '1 represents about 100 feet on the terrain.

>2 I 1 2?7 1 I 1 I 2 1 2

2 1 2.?7?2??72? 1 2 1 22 r

2 1

2 I >22 7 1 2 1 THE DIGITAL NUTATION METHOD

I 1 227 1 2 1

2 1 22 1 2 1

? 1 1 1 2 l

2,2 / I 1 L A simple digital version of Fischer's opti-

2 1111111111 2 I 7 1 2 1 cal-mechanical method is a s follows: T h e 1

2 1 2 1 I

1 2 1 2 1 2 1 positive and negative transparencies a re rep- 4 2 I 2 1

I 22 I I 227~?02,7?2 I 2 1 2 1 resented by the digital contour map and i ts 2 I 2 1

I 2 1 1 2 1 2 1 I 2 1 , 1 1 2 t 2 ~ complement. One of these maps is nutated I 7 1 2 1 1 2 1 2 1 2

I I I I 1 I I 1 I 1 I , 7 1 2 ; i 3, :;; 22 : 2 : :: about t h e other; for each relative shift, they I 2 1 . 11 : ; : : : are ANDed, and the results a re summed over

I 2 1 . 1 2 1 , : ; : : : : a complete nutation. Figure 3 shows the re- I , 1 2 2 1 2 I ? 2 1 7 1 2 2 1 sulting sums for a nutation amplitude of 10. 1 1 2 2 1 2 1 2 2

9 2 I 2 - 1 2 I 2 2 1 AS can be seen, the results a re too discrete, I 2 I 2 r 2 1 2 1 2 2 1 F I ? ,

1 2 1 : : ; ; : : perhaps because the nutation amplitude is not 1 7 l * ? I : : : : : great enough. Furthermore, there is a ten-

??2 I r 1

r 122 1 ,' : : : : : dency toward discontinuity both along and

1 - 1 I 2 1 2 2 1 3 2 1 I 1111 2 1 2 across contours. This may be due t o the

77 I 2 ? 2 1 2

2 1 2 2 1 .

, 72 I i ; : : : :E fact t h a t the diffusing transparency used in 8 1 1 2 2 1 i

1 2 1 2 22 : : : : the optical process was not simulated in the 1111 ?

1111 2 2 ~ 7 2,2r2122 : $ : 11 digital method. 2 2

F2: A l 1 1 * 2 d 1 , I t

1 2 2 1

22 1 2 2 1 I t was decided t h a t a closer equivalent t o

22 r 1

I 2 I 1 1 2 2 1

7 1 , I 2 2 I the optical scheme could be obtained b y 22

2 1 ,I 1 2 2 1 7

! l 1 1 iP 7 L 1 ~ I l , l : : : smoothing or blurring the results of t h e nuta-

7 1 2 L

, 2 - I. ?. : : : tion, i.e., averaging over a fixed neighborhood a t each point. The results of such a smooth-

FIG. 2. Digital contour map. ing, by averaging over a circular neighbor-

'C AFAA 17257A 1 7 5 2 1 1 A7 GA C15 57L A17L51nLC h7r. :tm AcrA n7 S ~ A ~ C C A ~ E BIIF AAAA A15 25777751

7n ~ 6 7 2 7 ~ 675 576 n 7 ~ ? ~ n n n 87,.

CIIC AA7A A75 2hC A5 ,171 117'1 57111 A73 7786 h7TI

I 1111 l A l 7 A a172 ac 1, 576 ~ $ 7 7 r l n n 17'1 5 7 ~ A,.,

' 7A CL 57h l b 7 1 57" 675 511 477 4 C11C LlA7A A11117777777757 5A C12 'hn b75 57A A75 s a c 6 5 (A FFA 47676 cCCCCCCCCt~IL72 2CC 75 57bb 115 -77" 172 l r n7 I A AFhn A7n76n ~ A A A S ? 5cc 75 ?7nn r l s s n r a5 . 7c CI 5AA 1C7A h777AAACCCCCCCCC C ~ ~ l C I ~ I L l Z 57. L75 .AC b7 7 r r 7 j l ~ A A ~ A ~ 7 ~ + 6 7 7 7 7 7 7 7 7 h ~ b ~ CCC h75 25,,2 5 7 ~ ~ 7 % 7c r 7 7 r r 7 l?AA r\197A AA72 P7lbAC A75 24AA7772 'sTA a7276 CA hr b7 i27A A65571 41117777?7757 ?'.nln7n75 57nnC hr r , 5 r c ngqn c n ? p a r 17271 1 7 9 5 7 ~ cCcCCCcCA~75 ? < ? v 27n c c n 7 ~ nc n72nr a s sa c n 2 $A25711 A 7 5 5 7 A l - 175 5 1 FCECCA 1 7 1 1C r 7 LC A7 nr an A7 5 7 1 A7527AALCCCCCCCC 67% L A CF579hC ,,9 7C C7 AC h l r n c 6% Ah2 57A AA722!~77777771~~A A75 2hC A5 r n n n 7c r r p a r n=.rb n r 2

I 1 7 5 7 1 AAAA777777775771 672 5fi Cb? SL CL17C C79L C19"b 17 i A45 57A CCcCCCCCCL~7~bA I 7 7 4 Cn ????nC n s r c r 7 , r cn7a nnp IA A75 5 7 ~ ~ 1x1 nn? 7c c,s~,rr,snc n r l r r l r c n r n r a r i7A 1 1 5 27AAAcCCcCCCCC A ~ F C n s 7c c r r n n7cc r l r c c n r r ncn nas?? 574 AAA777bCFFFFCA77Al" 6-C L 1 1C ICA F ATF r77C CC1 CCCI nCh7.35

6 7 1 C C C C C C C C C C ~ A ~ ~ snr. F ~ I c a ? ? n r r c n &:I: rr cn7c run rrn c ~ n n n) STA 1 7 5 7 ~ . CIF A!, '17 C C A ~ PL* r+t r f i n c r ~ r l i c ~ F,,A F 15

~ ~ A * C C C C L C C C C C ~ 7 s ?kc ac h r 67 cc7A 1111 rrr ncc wr cnnc ,,,I r K rr 25777777777AAa u s 1 c F I ~ cn771c A776 ArCC LIIC 111, r n n c SrH ru r.8

57A A757C FUA 07 Ah LL57777.7C Fl'C +'I4 C l l C 1.11 II C7 574 A7hL c v n rn75f i CnG255? 7c ,I!< CrF r r r c x r nr r n

5Ab 1C. CCCl "7271 L 7 5 7C X I ( CIC A F A C Y C ,.P C t '7A LCCA I F 1 6LSRlrl " 7 5 *C FI'C I(rC 111. CllF CF 711 CFI hcnn 1.75576 '7s ,rr 9 . ~ w . c n c c IILI ctar cu

7A Accn Acvn ~ 7 5 5 7 % rnc6n IFF rbt c r n r lit, c u r c u &FA An171 L I S S 7 l CC? /lCC ri' CCA OIF FI(C FF

7 1 l c c n ~ 7 n 7 n b7551a ~ 7 ' 1 7 ~ r x CEI c u r k ~ a O ~ C 2 7 1 ACCL ~ 7 ~ 7 b mr.57pi7~75 7c CFT C+T +*,I TI'C

571 8 C I I 6 7 n 7 h b7\?51'.1 7 c rr CFC Fllr Y t I r)IC 5 1 1 FC7h L 7 h 7 l 171. 1C H1: CFC *I4 C$t i FPC

25752 7b 4 1 h 1 4 A 1 7 1 475 TIC )I" CFT .I4 C~IT b 0 1 5717k1152 ?7K 1 7 1 7 & A117L A75 % 7 1 I H C 6iC I Y CFC WP

2 7 1 C L l l l ? 511 L7.71 I 7 h 7 1 1 & L t , r ? A LAFC 1TC K': ~ I I C 11" 5 1 FEC r r~rz ' .7n 6,mn nrn7n c r c c Arc& n n r r c h r IAN 77 TKILLC I h 7 5 q 7 l alA14 1777" 1 1 7 1 h 1716 X Y FF CI'F 5~ CLISIIII r n r 7 7 n .747A*tn7c~3A r a s n r r cwc clac

7752 C1175 27L ~ 7 5 27LAA l l l d 7 L ~ 7 i ~ 6:525r757 r n r r i r rx rnic CFC 5 7 1 &75 27aA 4 7 A 7 A l l C I .I< LC l l l d X U r F r TCC

AAA752 57A 675 5 7 6 1 r 7 h l l ~ C C I I ;? = L E Is?C gr: CCC CCAbAl752 5 7 1 175 - 2I:d l l r l d dCCL L L d 7 7 n l l L727C U N ccA. ccAx75 5 7 r rnr? 5 7 1 ancca peen c r c r r c r 7 r 7r x r ~ACAIICC 1172 1 & 7 i 57.\ ICCL a r c c a75 7~ lir

IACCLIIAACC A115 571 175 5711 ACC1 LFTFACCII75 7C Y I C AA17557AAA a75 5 1 1 j 174 ,711 l C I L ciF117G9 Wx

-. . -. - CFC CFC CFC CWC CFC CIIC CFC 1 b 1 C CFC Y I f CFC $.I% C

FIG. 3. Digital nutation method (no averaging; FIG. 4a. Digital nutation and averaging nutation radius 10) (blur radius 4), printout,

Page 4: Slope Measurement from Contour Maps

FIG. 4b. Picture output for Figure 4a.

hood of a radius of four a t each point, are shown in Figure 4. However, quantitative evaluation for eight test points (Table 1) shows deviations of several percent of slope, which would be too rough a n approximation for most purposes. Further s tudy is needed to determine the optimum nutation radius and blur radius for this method.

Qualitatively, a simple smoothing of the original contour map should also yield high values in areas of high slope. T h e iesults of such a smoothing, using circular neighbor- hoods of radius 10, are shown in Figure 5 .

T h e second digital method tested uses straightforward measurement of distance be- tween contours on the digitized map. As

Result of Result of ' lope nutation digital slope cOmp'Lted as

Point gradient SWa'e root

(X3) of s u m

method of squares

* This discrepancy is probably due to interaction between the nutation and the small closed contour

FIG. 5a. Averaging of original contour map (radius lo), printout.

the map scale and contour interval are known, slope can be easily computed from such a distance measurement. This was done in both the x and y directions (Figure 6a-d).*

* It would have been desirable, either as a check or to provide a closer approximation, also to com- pute slopes in the 45' directions. However, as the contour lines on the digitized map are thin, searches along 45' lines would often cross them without detecting them.

just surrounding Point C. FIG. 5b. Picture output for Figure 5a.

Page 5: Slope Measurement from Contour Maps

SLOPE MEASUREMENT FROM CONTOUR MAPS 2 8 1

FIG. 6a. Digital slope computation. Distance be- FIG. 6b. X-component of slope for Figure 6a. tween co~ltour lines in X-direction

FIG. 6c. Similar to Figure6a but in the Y-direction. FIG. 6d. Similar to Figure 6b but in the Y-direction.

Page 6: Slope Measurement from Contour Maps

282 PHOTOGRAMMETRIC ENGINEERING. 1971

The slope gradient can then be computed as the square root of the sum of the squares of these x and y slope components. T o simplify the computation, an approximation to the square root was used, namely u+v/2, where u is the larger and v the smaller of the two components. (Note tha t for v = O we have

whereas for v = u we have

and

so tha t this approximation is reasonably good a t both ends of the range O<v_<u.) The result is shown in Figure 6e. A quantitative evaluation of the results for the eight test points is given in Table 1.

A slope-class map was constructed by thresholding these results, using the slope intervals 0-2%, 2-5y0, 5-lo%, 10-2095, and >20y0 (Figure 7a). The map has a some- what blocky, grainy appearance. One cause of this is the fact tha t the estimated slope usually has discontinuities a t contour lines. T o combat this, the slope map was smoothed by assigning to each point on a contour line the average of the slopes a t the four neigh- boring points, and further by averaging over neighborhoods. The results are shown in Figure 7b. Analysis of the printout shows tha t scattered errors still survive, but if de- sired, many of these could be eliminated using standard noise-cleaning techniques.

The errors for the gradient method are of about the same magnitude as in the nutation method, but are differently distributed. An interesting difference between the two methods is that near the edges of the map, the nutation method underestimates the slope, because the map is blank beyond its edge, whereas the gradient method overesti- mates the slope, because i t treats the edge of the map as a contour. I n general, the gradient nlkthod is more flexible,because i t can pro- vide a variety of intermediate products, stich as slopes in specific directions.

The results of these studies indicate that approximate slope computation i n parallel from a digital contour map is feasible. The computation times required were not exces- sive (of the order of one minute), and on a parallel computer such as ILLIAC 111 i t should

FIG. 6e. Approximation to the gradient for Figure 6a.

be possible to do the computations for an entire map in times of tha t order.

An important limitation on such ap- proaches t o slope computation is imposed by the fact tha t the contour lines must be one picture element wide. (In the optical analog application too, the contour lines on the transparencies must have finite width.) Thus the accuracy of slope estimates can never be greater than 1/D, where D is the average distance between contours. This limitation is especially serious for steep ter- rain; thus the input map used in the tests represents a worst case. In spite of this, the results are believed to be encouraging, and the methods warrant serious consideration for use in practical applications.

ACKNOWLEDGMENTS

The work reported was initiated by Mr. Scheps in connection with geographic data processing studies under a Secretary of the Army Research and Study Fellowship. Mr. Lee implemented the first method. The guid- ance of Dr. Azriel Rosenfeld of the Uni- versity of Maryland, and the support of the National Aeronautics and Space Administra- tion and the Atomic Energy Commission, are gratefully acknowledged.

Page 7: Slope Measurement from Contour Maps

SLOPE MEASUREMENT FROM CONTOUR MAPS 283

FIG. 7. Digital slope class map. (a) Unsmoothed (top), and (b) Smoothed (bottom).

REFERENCES 2. M. S. Monmonier, J. L. Pfaltz and A. Rosen- 1. W. A.Fischer, Personal communication to B. B. feld, Surface area from contour maps, Photo-

Scheps, 29 October 1963. gram. Eng. 32, May 1966,476-482.

ASP Needs Old Magazines Because of an unexpected demand for journals and student requests, the supply

of some back issues of PHOTOGRAMMETRIC ENGINEERING has been depleted. Conse- quently, until further notice, National Headquarters will pay to the Regions-or to individual members-$1.00 for each usable copy of the following issues sent to Headquarters, 105 N. Virginia Ave., Falls Church, Va. 22046:

1969 January, March, June and July