Code covered by the BSD License  

Highlights from
color image segmentation

image thumbnail
from color image segmentation by Su Dongcai
segment color image robust to texture

speedTrans(Jmap, threshold, sigma)
function speed_map = speedTrans(Jmap, threshold, sigma)
%trans the Jmap to a speed map
%inputs:
%  Jmap:
%  threshold: edge threshold
%  sigma: 
%outputs:
%  speed_map
Jmap = Jmap / max(Jmap(:));
Jmap = 1-Jmap;
edge = (Jmap > threshold);
speed_map = exp(-((Jmap-threshold)/sigma).^2);
speed_map(edge) = 1;

Contact us