00:01
First of all, you want to do the replicate padding.
00:03
So let's say you have the original one here.
00:08
Now, after padding, we need one pixel padding around the image.
00:13
So you can see that you wrap, this is a nine, so basically it's a replicate of the number around it.
00:34
So you can see i copy one additional length, and then you have one more layer of replication.
00:42
So as you can see, you replicate outermost.
00:51
All right, so this is what we called a replicate padded.
00:58
So you can see the outer edge, these are replicate.
01:02
The outer edge are replicated.
01:05
So now let's apply filters.
01:08
So each original number is served as a center.
01:11
So for example, let's look at the first 3x3 filter.
01:17
So the first pixel is this.
01:21
One here.
01:24
So it's a 3x3 pixel.
01:27
So you can see that the filter is center, it's the left, center right, above and below.
01:34
So for this pixel, you can see that the original nine is the center.
01:39
And then you can see the filter is these nine numbers, uh, these five numbers.
01:44
I'm sorry, this is the filter.
02:00
So according to the question, you want to use a medium filter.
02:04
So basically, for these five numbers, you want to find the medium.
02:10
So if you look at the numbers, you have 3 .9 and 3 .8.
02:16
So you actually line them up in order.
02:19
So the middle number, or medium value, is a 9.
02:30
Then you move on to the next pixel.
02:35
So you can see this is the next 3x3 pixel.
02:38
And then again, you apply the filter.
02:40
So you can see that you have 1 .9, 28, 27, and so then the medium is 8.
03:01
So then you move on to the next.
03:04
The next pixel is 113.
03:12
Then you have 1 -8, 27, and 1 -6.
03:19
Medium, 7.
03:22
And so then you can see that's 76665, the medium is 6.
03:35
So you can see that we finish the first rule and then we're going to move down.
03:41
The next pixel will be this one here.
03:46
And again, now the filter is going to be like this.
03:54
So 9, 8, 8, 7, 7.
04:03
So as you can see that the medium is going to be 8.
04:08
So keep moving.
04:11
So that's 13, 8, 8, and 7, 6.
04:23
Medium number 8.
04:28
Again, you have 5 numbers and 13, 2, 7, and 25.
04:38
Medium number 7.
04:42
Keep going.
04:43
So for these five numbers, you have 13, 6, 5, and 4.
04:57
So from there, you can see that, again, we have five numbers.
05:01
You found the biggest to the smallest number, and the medium one is 5.
05:08
Now, the next one, you're going to actually, again, move down.
05:13
So you can see now we moved on the next pixel, and then you take the filter out.
05:18
You still select these five numbers.
05:21
Now the five numbers is 1 -8 -27 -and -26...