Getting imcontour matrix without the plotting

Is there a way to silently get the imcontour matrix C without having the contour plot?
[C,h]=imcontour(frame, 3);
I've tried using contourc, but I think I have to manipulate the image matrix to input into this function? I'm not sure how to though.
Any help would be appreciated!

답변 (2개)

Nicolaie Popescu-Bodorin
Nicolaie Popescu-Bodorin 2017년 4월 2일
편집: Walter Roberson 2017년 4월 2일

1 개 추천

C = imcontour(IM, oneLevel); % will open a figure, whereas
C = contourc(double(IM), [oneLevel oneLevel]); % will be silent and faster%
Kind regards,
Nicolaie Popescu-Bodorin
www.lmrec.org/bodorin/
Walter Roberson
Walter Roberson 2011년 2월 16일
편집: Walter Roberson 2017년 4월 2일

0 개 추천

imcontour just parses its arguments and calls contour(). For the arguments you provide, calling contourc with the same arguments would create the contours you want without plotting them.

카테고리

도움말 센터File Exchange에서 Encryption / Cryptography에 대해 자세히 알아보기

태그

질문:

2011년 2월 16일

편집:

2017년 4월 2일

Community Treasure Hunt

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

Start Hunting!

Translated by