function colorimage = addTrackingROI(mask,im)
%Add a tracking polygon in red over the image. The mask is a set of lines marked in red
[m,n] = size(im);

red = (im - min(im(:))) * 0.5 / (max(im(:)) - min(im(:))); 
green = red;
blue =  red;
red(find(mask>0))=1.0;

colorimage = zeros(m,n,3);
colorimage(:,:,1) = red;
colorimage(:,:,2) = green;
colorimage(:,:,3) = blue;
