필터 지우기
필터 지우기

For loop basic adaptive thresholding

조회 수: 3 (최근 30일)
Matpar
Matpar 2019년 6월 29일
댓글: Matpar 2019년 7월 1일
Hi, I am fairly new to matlab and I am really trying to understand how to do a simple for loop for adaptive thresholding! Can a professional break down the lines of code needed line by line please? I have done the googling but that is frustrating due to lacking understanding! The tabs are nice but it too is challenging when there's no one to clarify coding issues or anomalies as well as my errors. Can someone point me to a source of the basic codes as for loops and while loops etc? I would like to thank you immensely in advance!

채택된 답변

Chirag Nighut
Chirag Nighut 2019년 6월 30일
편집: Chirag Nighut 2019년 6월 30일
Following are the links to the official links for for loop and while loops respectively:
For for loop the syntax is
for index = values
statements
end
values contain, the array of all the values a variable has to take. Depending on the different values the index can take, you can write your logic in the statements. The statements run for all index values mentioned in the values array.
while expression
statements
end
The above code is syntax for while loop. The expression determines the condition which has to be satisfied for the execution of the statements. The statements will run till the expression holds true.
  댓글 수: 1
Matpar
Matpar 2019년 6월 30일
Hey Chirag Nighut thanks for acknowledging me!
thanks all for helping me really appreciate it, i will take another read cause I am missing loads it's confusing me even more!!

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

추가 답변 (1개)

Image Analyst
Image Analyst 2019년 6월 30일
Also look up adapthisteq() for an adaptive thresholding method.
  댓글 수: 1
Matpar
Matpar 2019년 7월 1일
Gotcha! will do now and try!

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

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by