for yy=1:Y for xx=1:X frame = img(max(1,yy-WIN):min(Y,yy+WIN),max(1,xx-WIN):min(X,xx+WIN)); ma = max(frame(:)); mi = min(frame(:)); contr(yy,xx) = (ma-mi)/(ma+mi); end
what does this phrase mean? "max(1,yy-WIN):min(Y,yy+WIN)"
Best Answer