# Help me understand this.

조회 수: 2 (최근 30일)
Andrew Killian 2021년 9월 11일
답변: Walter Roberson 2021년 9월 11일
For every white pixel in original image:
– Make all neighbors white in result.
• What is a neighbor?
– Specified as an extra parameter.
% 4-connected neighbors
neighborhood = [0,1,0; 1,1,1; 0,1,0])
imdilate(person, neighborhood)
--- --- ---
For a binary image a 0 is a white pixel and a 1 is black correct?
So the nieghbordhood is like:
0 1 0
1 1 1
0 1 0
But if one is in the middle isn't this for black pixels?
The idea is that it is looking at every single pixel from left to right & top to bottom right?
How exactly is it determining which black pixels to make white?
##### 댓글 수: 1이전 댓글 -1개 표시이전 댓글 -1개 숨기기
Walter Roberson 2021년 9월 11일
For a binary image a 0 is a white pixel and a 1 is black correct?
No, 0 is black and 1 is white.

댓글을 달려면 로그인하십시오.

### 답변 (1개)

Walter Roberson 2021년 9월 11일
How exactly is it determining which black pixels to make white?
The binary dilation of A by B, denoted A B, is defined as the set operation:
where ˆB is the reflection of the structuring element B. In other words, it is the set of pixel locations z, where the reflected structuring element overlaps with foreground pixels in A when translated to z.

댓글을 달려면 로그인하십시오.

### 카테고리

Help CenterFile Exchange에서 Neighborhood and Block Processing에 대해 자세히 알아보기

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by