function weight = w(value)
%Gets weighted values from pixel intensity


if value <= (.5) * (1 + 255)
    weight = value - 1;
else
    weight = 255 - value;
    
end