|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||
![]() |
![]() |
![]() |
![]() |
|
||||||||||||
|
|
|
|||||||||||||||
|
|
|
|||||||||||||||
|
|
|
|
||||||||||||||
|
|
|
|
|
|
|
|
|
|
||||||||
rivshrinkrivshrink infile outfile factor [-s]
Descriptionrivshrink shrinks the RivaFile infile by averaging factor squared tiles of pixels down to single pixels. If -s is specified, the shrunken data is taken by sampling instead of averaging. The shrunken data is written to outfile. infile's RivaFile header is copied to outfile, and the NS, NL, and PIXMETERS fields are updated. factor must be an integer greater than 1.rivshrink can shrink DEMs if BPP=1 or BPP=2, and other images for any value of BPP. If infile is a DEM with BPP=2, the pixels in outfile will invariably be in Unix order (SUNFORMAT=1).
UsageThe following listing shows how to shrink 'dem.riv' by a factor of 2 in each direction:
See AlsoRivaFile Format, rivheader.
| ||||
|
||||
| ||||