Code covered by the BSD License  

Highlights from
color image segmentation

image thumbnail

color image segmentation


Su Dongcai (view profile)


24 Nov 2010 (Updated )

segment color image robust to texture

speedTrans(Jmap, threshold, sigma)
function speed_map = speedTrans(Jmap, threshold, sigma)
%trans the Jmap to a speed map
%  Jmap:
%  threshold: edge threshold
%  sigma: 
%  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