function outVal = process_visible(val)

minVal = 0;
maxVal = 1;

outVal = val;

ind = find(val < minVal);
outVal(ind) = minVal;
ind = find(val > maxVal);
outVal(ind) = maxVal;
