|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||
![]() |
![]() |
![]() |
![]() |
|
||||||||||||
|
|
|
|||||||||||||||
|
|
|
|||||||||||||||
|
|
|
|
||||||||||||||
|
|
|
|
|
|
|
|
|
|
||||||||
rivresizerivresize infile outfile factor
Descriptionrivresize magnifies the RivaFile infile by bilinearly interpolating factor-1 points between pixels in infile. The result is a RivaFile with image that is factor times larger than the infile image in both directions. The resized data is written to outfile. NS, NL, and PIXMETERS fields of outfile's header are calculated by rivresize. All other fields are copied from infile's RivaFile header. factor must be an integer greater than 1.rivresize can resize 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 magnify 'dem.riv' by a factor of 2 in both dimensions:
See AlsoRivaFile Format, rivheader, rivshrink.
| ||||
|
||||
| ||||