Hi, I have just made a GUI of artificial vision. I have managed to do several operations but only in "fixed" images and I have three questions. I want to know what would be the best option to perform in "real time"? 1.- The timer function (a clear example of how it could be used?) 2.- The while function in infinite loop (How do you disable a while in infinite loop?) 3.- Any other function that you know? (I need to apply filters, masks and generate RGB / BW histograms) Thanks in advance
TIMER FUNCTION
https://www.mathworks.com/help/matlab/matlab_external/timerfcn.html?searchHighlight=timerfcn&s_tid=doc_srchtitle
I want to apply filters, masks and make histograms in "real time"

답변 (2개)

John D'Errico
John D'Errico 2017년 6월 23일

0 개 추천

I have no idea what you want in terms of an example for a timer. I'd start by reading
doc timer
You will find examples there.
A while is trivial though.
iter = 0;
while 1
iter = iter + 1;
if rand(1) < 0.00001
break
end
end
iter
iter =
230491
Or use a condition in the while statement itself.
iter = 0;
while rand(1) > 0.00001
iter = iter + 1;
end
iter
iter =
19420

댓글 수: 1

Guillermo Gutiérrez
Guillermo Gutiérrez 2017년 6월 23일
편집: Guillermo Gutiérrez 2017년 6월 23일
I mean this function
https://www.mathworks.com/help/matlab/matlab_external/timerfcn.html?searchHighlight=timerfcn&s_tid=doc_srchtitle
I want to apply filters, masks and make histograms in "real time" but I want to know what would be the best option to perform it 1.- The timer function 2.- The while function in infinite loop 3.- Any other function that you know?

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

Image Analyst
Image Analyst 2017년 6월 28일

0 개 추천

My example of using a while loop to do stuff until you press a pushbutton is attached.

카테고리

도움말 센터 및 File Exchange에서 Computer Vision Toolbox에 대해 자세히 알아보기

질문:

2017년 6월 23일

답변:

2017년 6월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by