Contenuto principale

gather

Retrieve cornerPoints from the GPU

Description

pointsCPU = gather(pointsGPU) returns a cornerPoints object with data gathered from the GPU for the Location and Metric properties.

example

Examples

collapse all

Read an image.

I = imread('cameraman.tif')

Create a GPU array object.

I = gpuArray(I);

Find and display Harris features in the image.

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

Copy the corner points to the CPU for further processing.

pointsCPU = gather(pointsGPU);

Input Arguments

collapse all

GPU points, specified as a cornerPoints object.

Version History

Introduced in R2012a

See Also