加载中
PyOpenCL图像处理:RGB图像边缘增强

# -*- coding: utf-8 -*- from __future__ import absolute_import, print_function import numpy as np import pyopencl as cl import cv2 from PIL import Image def RoundUp(groupSize,...

PyOpenCL图像处理:RGB图像边缘检测

# -*- coding: utf-8 -*- from __future__ import absolute_import, print_function import numpy as np import pyopencl as cl import cv2 from PIL import Image def RoundUp(groupSize,...

PyOpenCL图像处理:卡通效果

# -*- coding: utf-8 -*- from __future__ import absolute_import, print_function import numpy as np import pyopencl as cl import cv2 from PIL import Image def RoundUp(groupSize,...

PyOpenCL图像处理:Box模糊

# -*- coding: utf-8 -*- from __future__ import absolute_import, print_function import numpy as np import pyopencl as cl import cv2 from PIL import Image def RoundUp(groupSize,...

PyOpenCL图像处理:均值灰度化

# -*- coding: utf-8 -*- from __future__ import absolute_import, print_function import numpy as np import pyopencl as cl import cv2 from PIL import Image def RoundUp(groupSize,...

PyCUDA学习:传递struct参数

#-*-coding:utf-8-*- import pycuda.gpuarray as gpuarray import pycuda.driver as cuda import pycuda.autoinit from pycuda.compiler import SourceModule import numpy mod = SourceMod...

PyCUDA学习:gpuarray与kernel的抽象原型

# -*-coding:utf-8 -*- import pycuda.gpuarray as gpuarray import pycuda.driver as cuda import pycuda.autoinit import numpy a = numpy.asarray([ [1,2,3,4],[5,6,7,8],[9,10,11,...

PyCUDA学习:数据传输

#-*-coding:utf-8-*- import pycuda.autoinit import pycuda.driver as cuda import numpy as np from pycuda.compiler import SourceModule a = np.asarray([ [1,2,3,4],[5,6,7,8],[9...

PyCUDA学习:Helloworld

PyCUDA的安装请参考:https://wiki.tiker.net/PyCuda/Installation 示例代码如下: # -*- coding:utf-8 -*- import pycuda.autoinit import pycuda.driver as drv import numpy as np f...

PyOpenCL图像处理:两张图片不带权重叠加

# -*- coding: utf-8 -*- from __future__ import absolute_import, print_function import numpy as np import pyopencl as cl import cv2 from PIL import Image def RoundUp(groupSize,...

没有更多内容

加载失败,请刷新页面

没有更多内容

返回顶部
顶部