メインコンテンツ

gather

GPU からの cornerPoints の取得

説明

pointsCPU = gather(pointsGPU) は、GPU から収集された Location プロパティと Metric プロパティのデータを含む cornerPoints オブジェクトを返します。

すべて折りたたむ

イメージを読み取ります。

I = imread('cameraman.tif')

GPU 配列オブジェクトを作成します。

I = gpuArray(I);

イメージの Harris 特徴を検出して表示します。

pointsGPU = detectHarrisFeatures(I);
imshow(I); 
hold on;
plot(pointsGPU.selectStrongest(50));

さらに処理するために、コーナー ポイントを CPU にコピーします。

pointsCPU = gather(pointsGPU);

入力引数

すべて折りたたむ

GPU 点。cornerPoints オブジェクトとして指定します。

バージョン履歴

R2012a で導入