MATLAB GUI code

Write a MATLAB GUI code that can upload any image and enable the user to apply basic image processing methods. The required main methods are:

  1. Convert the image to a gray level.
  2. Convert the image to binary (use one of the thresholding methods).
  3. Enable the user to reset to the original image.
  4. Show the image histogram.
  5. Enable the user to complement the image.
  6. Apply edge detection on the image (use one of the leading edge detection methods).