필터 지우기
필터 지우기

Expand the contour of structure

조회 수: 2 (최근 30일)
Rami
Rami 2013년 9월 19일
Hi,
I would like to create contour of structure in image and need to expand the contour in all directions by 10 pixels. I used edge and imdilate, but got wrong results. Any help or guidance will be appreciable.
[edge_im,th] = edge(image,'sobel'); % Boundary of structure
figure(1),imshow(edge_im);
se = ones(10,10);
dilate_im = imdilate(edge_im,se,'full'); % Dilate boundary by 10 pixels
figure(2),imshow(dilate_im);
[expand_im,th]=edge(dilate_im,'sobel'); % Boundary of expansion of aperture
figure(3),imshow(expand_im);
  댓글 수: 1
Doug Hull
Doug Hull 2013년 9월 19일
what is a typical image (please attach)? What is the 'correct' results?

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Contour Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by