Question: Write a MATLAB function called modifylmage that has two inputs and one output. The first input is a gray scale image. The output is a

 Write a MATLAB function called modifylmage that has two inputs and

Write a MATLAB function called modifylmage that has two inputs and one output. The first input is a gray scale image. The output is a gray scale image that is a moditied version of the input image where the top right part of the image is darkened, and the lower left part of the image is brightened. Specifically,. itf the row number is less than or equal to the column number, the pixel values should be decreased by the value of the second input. If the row number is greater than the column number, the plxel values should be increased by the value of the second input. For example, if x [100 100 100; 100 100 100; 100 100 100) and y - 10, then z u moditylmage(x.y) would result in z - (90 90 90; 110 90 90: 110 110 90]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!