MATLAB code for threshold operation | Digital Image Processing | MATLAB