include procedure select_obj(in,cx,cy) # Allows the user to select a location of the display. # This procedure either computed the centroid of a selected region, # or it uses the value of a single point. pointer in int cx,cy real wx1, wx2, wy1, wy2, temp int wcs, key char strval[SZ_LINE] int nx, ny, xp, yp pointer imgs2r() int halfwidth int junk, clgcur() begin call printf("PLEASE SELECT AN OBJECT. \n") call printf("Select first corner, press the x key (s for single point)\n") junk = clgcur ("imcur",wx1,wy1,wcs,key,strval,SZ_LINE) if(key!='s') { call printf("Select second corner, press the x key\n") junk = clgcur ("imcur",wx2,wy2,wcs,key,strval,SZ_LINE) if(wx2