function Ec = cv_Canny_contrast(Es,image_in)
%
[rows,cols] = size(Es);
Ec = zeros(rows,cols);
for r = 1:rows
   for c = 1:cols
      if Es(r,c)>0
         Ec(r,c) = image_in(r,c);
      end
   end
end

         