Matlab – Thresholding an Image

This post about matlab command used in image processing for thresholding an image. Threshold is simple concept of setting range of certain value to be a value. The basic purpose of thresholding in image processing is to adjust the pixel value of an image to certain value. Lets take an example. The matlab command below can be used to thresholding an image. What this command will do is to set the pixel value to 0 if  the original pixel value is below or equal to 128. Otherwise, if the original pixel value is above 128, the new pixel value will be 255. Below is the example command. Continue reading “Matlab – Thresholding an Image”