Home > Back-end >  Small white C language homework for solutions (about 3 * 3 median filter, relatively difficult)
Small white C language homework for solutions (about 3 * 3 median filter, relatively difficult)

Time:04-18

Topic is that the number of input of any size, the value of the 3 * 3 instead of the middle value, the great god should all know, most of the site are image processing, I don't need so complicated, that is I don't need to deal with image, as long as I enter any Numbers, big enough to put aside smoothly after application number into should be on the edge of the mean, ask god help solutions, emergency, in order to make great god have a better understanding, I directly put the title, but the teacher may want to enter the number of array to test,


D. to the following red part for image enhancement (for each pixel values, take the pixel values in the field of 3 x 3 mean for alternative)
1 2 3 4 5 6 5 4 3 2 1
1 2 5 5 5 6 4 4 2 1
1 2, 5, 7, 7 July 7 7 4 2 1
1 2 5 7 8 8 8 7 4 2 1
1 2 5 7 8 9 8 7 4 2 1
1 2 5 7 8 8 8 7 4 2 1
1 2 5 7 7 8 August 7 4 2 1
1 2, 5, 7, 7 July 7 7 4 2 1
1 2 5 5 5 6 4 2 1

CodePudding user response:

From the top, the great god answers quickly, can give points reward private chat

CodePudding user response:

I am here to write a small demo about 3 * 3 image filtering, using vc + + MFC in, will be as you describe all except the boundary pixels into neighborhood average is achievable, this demo can also be extended through the boundary, so the original image boundary can also be processed
  • Related