Code covered by the BSD License  

Highlights from
von Mises image entropy

von Mises image entropy

by

 

22 Aug 2012 (Updated )

Algorithm to determine the von Mises distribution of the image Rényi entropy.

C=circularmaskplus(ro,co,i0,j0,r)
function C=circularmaskplus(ro,co,i0,j0,r)
% C=CircularMaskPlus(ro,co,i0,j0,r)
% Binary mask of size ro, co, centered in i0 j0 and radius r
% Inputs
% ro: number of rows in the output mask 
% co: number fo columns in the output mask
% i0: row where the center is located
% j0: column where the center is located
% r: radius of the mask
% Outputs:
% C: the output mask
% By Salvador Gabarda 2011
% salvador@optica.csic.es

C=zeros(ro,co);

for i=1:ro
    for j=1:co
        if (i-i0)^2+(j-j0)^2<=r^2
            C(i,j)=1;
        end
    end
end

Contact us