Navigation : Top/MATLAB Practice 5

Image processing

  • Read and display the image data (smile.jpg) with RGB information.
    # imread, image, imagesc 
  • Convert image data (smile.jpg) to gray scale image and display it.
    # rgb2gray 
    Calculate the intensity [sqrt{fx^2+fy^2}] from the first derivative of the gray scale image of -2, and perform the following two operations.
    • Make the original image ugly by superimposing on it an intensity that is a multiple of the first derivative.
    • Subtract a multiple of the first derivative from the original image to make it beautiful. Save the image as -jpeg and check if it is visible in other software.
      # imwrite 

Data . [#e2b53ea0]

  • Prepare the image data by yourself.

Create and use external functions

Create an external function using the --function statement for the beautification and disfiguration described in the previous exercise.

  • Input
    • Original image and beautification/degradation parameters
  • Output Output --- the image after processing.
  • Note that RGB, not Gray Scale, should be used for the image.