SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

BotDetect - Real-Time Bot Detection API
 
 

MAN page from Mandrake Other XITE-3.3-3.i386.rpm

ADDW

Section: User Commands (1)
Updated: 16 Mar 1998
Index

 

NAME

addw - add two bands pixel by pixel, with weights

 

SYNTAX


 addw [-t <title>] [-w1 <w1>] [-w2 <w2>]
      [-offset <offset>] <input1> <input2> <output>

 

DESCRIPTION

addwcalculates, pixel by pixel, for each pair ofbands, the weighted sum of input1 and input2.


 output(x,y) = w1*input1(x,y) + w2*input2(x,y) + offset

For complex or double complex bands, the result is


 output(x,y).re = w1*input1(x,y).re + w2*input2(x,y).re
                  + offset
 output(x,y).im = w1*input1(x,y).im + w2*input2(x,y).im
                  + offset

If the result is outside the pixeltype range, the result istruncated. Within the pixeltype range, the result is roundedto the nearest possible pixelvalue.

 

OPTIONS

-t title
titleof the new image. Default: "Weighted sum"

-w1 w1
Weight of input1.Default: 0.5.

-w2 w2
Weight of input2.Default:0.5.

-offset offset
Default: 0.0

 

RESTRICTIONS

Corresponding bands of the two input images must be of thesame pixel type. Only the largest rectangle common to twoinput bands are added.

 

SEE ALSO

addw(3), absDiff(1), signDiff(1), multiply(1), divide(1)

 

AUTHOR

Tor Lønnestad, BLAB, ifi, UiO

 

REVISED

Svein Bøe, Ifi, UiO. Implemented for all pixel types, notonly unsigned byte.

 

EXAMPLES


 addw mona1.img mona2.img monaBoth.img
 addw -w1 0.3 -w2 0.7 i1.img i2.img sum.img

 

ID

$Id: addw.c,v 1.36 1997/04/23 20:44:28 svein Exp $


 

Index

NAME
SYNTAX
DESCRIPTION
OPTIONS
RESTRICTIONS
SEE ALSO
AUTHOR
REVISED
EXAMPLES
ID

This document was created byman2html,using the manual pages.
 
ICM Bot detect detector