Be the first to rate this file! 5 Downloads (last 30 days) File Size: 4.6 KB File ID: #40046

poly2mask using GPU

by Jun Tan

 

28 Jan 2013

poly2mask using GPU.

| Watch this File

File Information
Description

poly2mask using GPU

Format:
mask = poly2mask_gpu(x, y, m, n)

same format as Matlab's poly2mask:
http://www.mathworks.com/help/images/ref/poly2mask.html

--------------------------------
Result:
Several times faster than poly2mask.

--------------------------------
Note:
(1) First call is not very fast because it requires time to setup the kernel. But following calls are fast because the kernel exists as a persistent variable.
(2) If you want a 32-bit version, Rebuilt. Make sure you have CUDA. Also remember to clear all after rebuild so the persistent kernel will update.

Required Products MATLAB
MATLAB release MATLAB 7.14 (R2012a)
Other requirements CUDA
Tags for This File  
Everyone's Tags
gpu, poly2mask, polygon to mask
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.

Contact us