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 -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -