Hi, I’mtrying to do an exercise about image processing with matlab, which asks toapply a threshold to a gray-scale image to form a binary image. The problem isthat I am not allowed to use im2bw or change the colormap. The user should beallowed to change the threshold. It also says that in order to achieve thebinary image the program should determine whether the intensity of each pixelis above the threshold. I must also find a way to calculate the number ofpixels with intensity above, below and equal to the threshold and to displaythe results.
I am prettysure I have to use for loop but I have only few weeks experience with matlab and Ihave no idea how it works. Please help!