Need explanation of the following MATLAB code?

x=bwperim(im);
y(x)=255;
Where, im=Binary image of given Gray scale image and y= given gray scale image and bwperim is fuction for calcuation of perimeter.

 채택된 답변

Guillaume
Guillaume 2017년 3월 14일

0 개 추천

What is there to not understand?
The code uses logical indexing to set the pixels of the perimeter to 255 in the grayscale image.

추가 답변 (0개)

질문:

2017년 3월 14일

답변:

2017년 3월 14일

Community Treasure Hunt

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

Start Hunting!

Translated by