Simpler way to implement Kernel density
显示 更早的评论
Hello, Iv'e been trying to implement this equation into matlab:

omega is some known region of the image u1.
and p1,i is:

pay attention u1 is an image (column ordered), an p1,i supposed to be calculated in each pixel of this image.
now, iv'e calculated p1,i in this way:
[f1,xi1] = ksdensity(u1(:),1:255);
p1_u1 = reshape(f1(floor(u1(:))+1),M,N);
now my problem is to calculate the former equation.
iv'e tried with "for" loop but its taking forever..
any other suggestions? maybe there's a way using "ksdensity" and change the value inside the integral?
Thanks!
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!