주요 콘텐츠

size

points 객체의 크기 반환

설명

sz = size(points)는 points 객체의 크기를 반환합니다. sz는 벡터 [length(points),1]로 정의됩니다.

예제

sz = size(points,1)points의 길이를 반환합니다.

sz = size(points,dimension)은 지정된 차원에 있는 points의 길이를 반환합니다.

[M,N] = size(points)M에 대해 length(points)를, N에 대해 1을 반환합니다.

예제

모두 축소

영상을 읽어 들입니다.

I = imread('cameraman.tif');

코너 특징을 검출합니다.

featurePoints = detectHarrisFeatures(I);

특징점 객체의 크기를 구합니다.

sz = size(featurePoints)
sz = 1×2

   184     1

검출된 특징을 사용하여 특징 영상을 플로팅합니다.

imshow(I); hold on;
plot(featurePoints);

Figure contains an axes object. The hidden axes object contains 2 objects of type image, line. One or more of the lines displays its values using only markers

입력 인수

모두 축소

Points 객체로, Point Feature Types에 설명된 특징점 객체 중 하나로 지정됩니다. 이 객체는 입력 영상에서 검출된 특징점에 대한 정보를 포함합니다. 점을 얻으려면 특징점 유형과 쌍을 이루는 적절한 검출 함수를 사용하십시오.

차원으로, 정수로 반환됩니다. dim >= 2인 경우, 객체는 1을 반환합니다.

버전 내역

R2012a에 개발됨