198 |
|
.SH EXAMPLES |
199 |
|
To produce a picture showing the difference between pic1 and pic2: |
200 |
|
.IP "" .2i |
201 |
< |
pcomb -e 'ro=ri(1)-ri(2);go=gi(1)-gi(2);bo=bi(1)-bi(2)' pic1 pic2 > diff |
201 |
> |
pcomb \-e 'ro=ri(1)\-ri(2);go=gi(1)\-gi(2);bo=bi(1)\-bi(2)' pic1 pic2 > diff |
202 |
|
.PP |
203 |
|
Or, more efficiently: |
204 |
|
.IP "" .2i |
205 |
< |
pcomb pic1 -s -1 pic2 > diff |
205 |
> |
pcomb pic1 \-s \-1 pic2 > diff |
206 |
|
.PP |
207 |
|
To precompute the gamma correction for a picture: |
208 |
|
.IP "" .2i |
209 |
< |
pcomb -e 'ro=ri(1)^.4;go=gi(1)^.4;bo=bi(1)^.4' pic > pic.gam |
209 |
> |
pcomb \-e 'ro=ri(1)^.4;go=gi(1)^.4;bo=bi(1)^.4' pic > pic.gam |
210 |
|
.PP |
211 |
|
To perform some special filtering: |
212 |
|
.IP "" .2i |
213 |
< |
pcomb -f myfilt.cal -x xmax/2 -y ymax/2 input.pic > filtered.pic |
213 |
> |
pcomb \-f myfilt.cal \-x xmax/2 \-y ymax/2 input.pic > filtered.pic |
214 |
|
.PP |
215 |
|
To make a picture of a dot: |
216 |
|
.IP "" .2i |
217 |
< |
pcomb -x 100 -y 100 -e 'ro=b;go=b;bo=b;b=if((x-50)^2+(y-50)^2-25^2,0,1)' > dot |
217 |
> |
pcomb \-x 100 \-y 100 \-e 'ro=b;go=b;bo=b;b=if((x-50)^2+(y-50)^2\-25^2,0,1)' > dot |
218 |
|
.SH AUTHOR |
219 |
|
Greg Ward |
220 |
|
.SH "SEE ALSO" |