|
|
| 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 |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
|
Contact us