GPULib API

Tech-X Corporation

single page | use frames     summary     class     fields     routine details     file attributes

demos/sam/

gpu_sam_demo.pro


Demonstrate a spectral angle mapper on GPU and CPU.

This demo generates a random image cube and a library of random reference spectra and computes the spectral angle between each pixle in the image cube and each reference spectrum.

Due to an error in pre-180 CUDA drivers, the product of nsamples * nlines has to be smaller than 64k floats in the gpuSubArr function.

230 MB of available memory (not including other process using the graphics card) is required to run this demo.

top gpu_sam_demo

gpu_sam_demo [, /just_gpu] [, _extra=keywords]

Spectral Angle Mapper calculation demo. This demo computes does spectral angle mapper calculations using both the CPU and GPU and compares the results.

Keywords

just_gpu in optional type=boolean

do not do the IDL calculations on the CPU, only the GPU

_extra in optional type=keywords

keywords to GPUINIT

File attributes

Modification date: Fri Nov 12 11:07:48 2010
Lines: 142
Docformat: rst rst