how to know pixel color using t_sampler in jocl

血红的双手。 提交于 2020-01-25 12:59:04

问题


I want to detect peaks in a binary image using jocl. The definition of my peak is a combinition of colered pixels (shown in the image)

how to use t_sampler to know pixel color?

const sampler_t smp = CLK_NORMALIZED_COORDS_FALSE | //Natural coordinates
                      CLK_ADDRESS_CLAMP | //Clamp to zeros
                      CLK_FILTER_NEAREST; //Don't interpolate

PS: my image is a binary image

来源:https://stackoverflow.com/questions/38340383/how-to-know-pixel-color-using-t-sampler-in-jocl

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!