function out = curlab2(H,K)

[m,n] = size(H);

out = zeros(m,n); 

out = 1 + 3*(1 + sign(H)) + (1+ sign(K));

