Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to Use formula in c++ opencv

I have 3 formula, (P and S is the same picture that taken with different method)

  1. P/S
  2. P/(P+S)
  3. |P-S|/|P+S|

Image P

image description

Image S

image description

and with one of these formula the result will become like this :

image description

how to implemet these formula in c++ ?

if i`m using

subtract(P, S, min); 
add(P, S, plus);`

is that same as P-S and P+S, and how to devided P with S ?

How to Use formula in c++ opencv

I have 3 formula, (P and S is the same picture that taken with different method)

  1. P/S
  2. P/(P+S)
  3. |P-S|/|P+S|

Image P

image description

Image S

image description

and with one of these formula the result will become like this :

image description

how to implemet these formula in c++ ?

if i`m using

subtract(P, S, min); 
add(P, S, plus);`

is that same as P-S and P+S, and how to devided divide P with S ?