Call the image by using for loop

조회 수: 1 (최근 30일)
Akhilesh Singh
Akhilesh Singh 2014년 2월 11일
댓글: Walter Roberson 2014년 2월 12일
Sir,
1. i want to call the image by using for loop repeatable.
2. Can we use 2 for loop together.
  댓글 수: 1
Thomas Seers
Thomas Seers 2014년 2월 11일
You need to elaborate on what you want

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

채택된 답변

Walter Roberson
Walter Roberson 2014년 2월 11일
  댓글 수: 2
Walter Roberson
Walter Roberson 2014년 2월 12일
%d is a format specifier that is to be interpret as "format an integer here"
Walter Roberson
Walter Roberson 2014년 2월 12일
1. You can use imresize() to get common sizes for the images. Note, though, that if they do not all have the same ratio of width to height then the contents will get distorted by the imresize()
Replace parts 2., 3., 4. by
mask = YourImage > threshold;
This assumes that YourImage is grayscale. If it is not grayscale then you need to define which "intensities" you are referring to.
For 5., I am guessing you are talking about
[y, x] = find(mask);
but I don't know how you will find the area using those.
Hint: nnz(mask)

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by