c# - Element-wise division between two images using emgu -


i want perform element-wise division between 2 images. using emgucv , tried following doesn't perform element-wise division.

image<gray, double> = new image<gray, double>(634, 474); image<gray, double> b = new image<gray, double>(634, 474); image<gray, double> c = new image<gray, double>(634, 474); cvinvoke.cvdiv(a.ptr, b.ptr, c.ptr, 1); 

how can perform element-wise division operation following:

c[i,j]=a[i,j]/b[i,j]; 

as a[i,j]/b[i,j] = a[i,j] * (1/b[i,j]) = a[i,j] * b[i,j]^(-1), should able way:

c = a.mul(b.pow(-1)); 

i haven't tested though.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Socket.connect doesn't throw exception in Android -

iphone - How do I keep MDScrollView from truncating my row headers and making my cells look bad? -