6 |
|
.B getinfo |
7 |
|
[ |
8 |
|
.B -d |
9 |
+ |
| |
10 |
+ |
.B +d |
11 |
|
][ |
12 |
|
.B "file .." |
13 |
|
] |
25 |
|
.B getinfo |
26 |
|
[ |
27 |
|
.B -d |
28 |
+ |
| |
29 |
+ |
.B +d |
30 |
|
] |
31 |
|
.B -c |
32 |
|
.B "command .." |
51 |
|
For a picture, |
52 |
|
.I "getinfo \-d" |
53 |
|
prints the y and x resolution (\-Y yres +X xres). |
54 |
+ |
The |
55 |
+ |
.I \+d |
56 |
+ |
option prints the header followed by a newline and the dimensions. |
57 |
|
If no |
58 |
|
.I file |
59 |
|
is given, the standard input is read. |
65 |
|
input to the standard output. |
66 |
|
If the |
67 |
|
.I \-d |
68 |
< |
option is included, then the resolution string will be elided as well. |
68 |
> |
option is given, then the resolution string will be elided as well. |
69 |
|
.PP |
70 |
|
The third form of |
71 |
|
.I "getinfo \-a" |
86 |
|
( getinfo < input ; getinfo - < input | command .. ) |
87 |
|
.PP |
88 |
|
If the |
89 |
+ |
.I \+d |
90 |
+ |
option is given with |
91 |
+ |
.I \-c, |
92 |
+ |
then the resolution string will be copied before the command is called. |
93 |
+ |
If the |
94 |
|
.I \-d |
95 |
< |
option is included, then the resolution string will be copied |
96 |
< |
before the command is called. |
85 |
< |
.SH EXAMPLE |
95 |
> |
option is given, then the resolution string is read in but not copied. |
96 |
> |
.SH EXAMPLES |
97 |
|
To print the header information from scene1.oct and scene2.hdr: |
98 |
|
.IP "" .2i |
99 |
|
getinfo scene1.oct scene2.hdr |
100 |
+ |
.PP |
101 |
+ |
To print the dimensions of a set of pictures: |
102 |
+ |
.IP "" .2i |
103 |
+ |
getinfo -d *.hdr |
104 |
+ |
.PP |
105 |
+ |
To add two header lines modifying the view |
106 |
+ |
and exposure calibration of a picture: |
107 |
+ |
.IP "" .2i |
108 |
+ |
getinfo -a "VIEW= -vta -vh 180 -vv 180" "EXPOSURE=1.5" < orig.hdr > modified.hdr |
109 |
+ |
.PP |
110 |
+ |
To raise floating-point matrix elements to a power of 2.7: |
111 |
+ |
.IP "" .2i |
112 |
+ |
getinfo -c rcalc -if -of -e '$1=$1^2.7' < input.fmx > output.fmx |
113 |
|
.SH AUTHOR |
114 |
|
Greg Ward |
115 |
|
.SH "SEE ALSO" |