The major purpose of adaptive thresholding is to give each
pixel a suitable threshold value that is dependent on the distribution of grey levels of the neighbourhood pixels.
To achieve this, we create a map of threshold values which has the same size with the original image during adaptive thresholding process.The map stores the threshold values corresponding to each pixel in the original image and is used to create a binary image for later processing