You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
CPUによる類似度計算の制御<br />
// スケール&誤差を保持するGPU側のメモリ領域<br />
thrust::device_vector< float > derror( img.size( ), 1.0e10f );<br />
thrust::device_vector< float > dscale( img.size( ), 0 );<br />
float s = MIN_SCALE;<br />
while( s ( thrust::raw_pointer_cast( &derror[ 0 ] ),<br />
thrust::raw_pointer_cast( &dscale[ 0 ] ),<br />
W, H, W - w, H - h, w, h, s );<br />
cudaDeviceSynchronize( ); // 処理が完了するまで待機する<br />
s *= SCALE_FACTOR; // スケールを変更する<br />
// GPUの処理結果を転送する<br />
thrust::host_vector< float > herror = derror;<br />
thrust::host_vector< float > hscale = dscale;<br />
スケールを変更して再探索<br />
GPUを用いて類似度を計算<br />
80