Question: Help in PixelGray * * threshold ( PixelGray * * matrix, int width, int * height ) ; a . This function should create a

Help in PixelGray** threshold(PixelGray** matrix, int" width, int* height);
a. This function should create a new 2D matrix. Dynamically allocate the storage (2D
matrix) for the new matrix.
b. Thresholding
i. If original value >80-- store 255
ii. Otherwise - store 0
c. Return the new 2D matrix.
PixelGray** rotate(PixelGray"" matrix, int" width, int" height);
a. This function should create a new 2D matrix. Dynamically allocate the storage
matrix) for the new matrix.
b. Rotate the original 2D matrix and store the result as the new matrix.
i. Rotation can be achieved by matrix transpose (swapping rows & column).
c. Return the new 2D matrix.
Input: lenna.pgm
 Help in PixelGray** threshold(PixelGray** matrix, int" width, int* height); a. This

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!