You have been provided with seven images namedIMG5698.JPGtoIMG5704.JPG. Theseimages were taken in low light conditions with a very high ISO setting which results in “noise” onthe image (random fluctuations in pixel intensity) and “bright pixels” (pixels which appear brightin every image, despite not being hit by light).In addition to the seven source images you are also provided with a “dark frame”,dark.png. Thisis a photograph taken with the lens cap installed and measures the “bright pixels” intensity.Write a MATLAB script which performs the following tasks:1. Calculates the mean of all seven images2. Subtracts the dark frame from the “mean” image3. Performs athresholdto blacken “nearly black but not quite” pixels. The threshold value,assuming a 0-255 intensity range, is to be 25. ie: any intensity value on any pixel channel lessthan 25 should be set to zero.4. Displays the result.