Code covered by the BSD License  

Highlights from
color image segmentation

image thumbnail

color image segmentation

by

 

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
%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