필터 지우기
필터 지우기

np-by-2 array

조회 수: 1 (최근 30일)
Shivang Patel
Shivang Patel 2015년 2월 9일
댓글: Lluis Roca 2021년 1월 18일
How to create np-by-2 array ?
I found matlab code related to chain code. and in that code author used np-by-2 array as a input of the function.
So. pls help me... Thanks in advance...
  댓글 수: 4
dpb
dpb 2015년 2월 9일
Well, an "npx2 array" simply means an array of np rows by 2 columns.
Now what that array is supposed to be or represent we've no way of knowing; that's totally dependent upon the use the author of the code you've found has prescribed for it.
Simply "making" a npx2 array is as simple as
np=5; % say 5 rows
MyNPby2Array=rand(np,2); % create a 5x2 array of random values
You'll have to read the documentation supplied by or contact the author for the subject code you're trying to use to understand the specifics of that particular application.
Shivang Patel
Shivang Patel 2015년 2월 10일
ok... thank you...

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

채택된 답변

Image Analyst
Image Analyst 2015년 2월 9일
np probably means "number of points". There are np rows - one row for each point. And two columns. The first column is probably either the x coordinate, or the row of the image. The second column is either the y value, or the column of the matrix. Not sure how they specified it - what they are expecting. Make sure you don't make the common mistake of mixing up row, column with x,y. Remember row,column is y,x NOT x,y.
  댓글 수: 5
Image Analyst
Image Analyst 2021년 1월 17일
Not sure what "draw back" means.
Lluis Roca
Lluis Roca 2021년 1월 18일
"draw back" - use a chain code to draw the original object outline

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Feature Detection and Extraction에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by