computing matting Laplacian matrix of an Image
- by ajith
hi everyone,
i need to compute Laplacian Matrix-L for an image(nXn) in opencv...computing goes as follows..........
dij - 1/|wk|{[1+1/(e/|wk|+s2)][(Ii-µk)*(Ij -µk)]}.... for all(i,j)?wk,summing over k yields (i,j)th element of L.
where Here dij is the Kronecker delta,µk and s2k are the mean & variance of intensities…