将对象放置在图像亮点周围 - coco2d /opengl / coregraphics?
我想提取图像的白色区域/明亮区域并在这些区域中放置自定义对象。我需要知道要使用哪个框架。如果有人做过类似的事情,我将不胜感激。我知道如何获取像素值,但困难的部分是在这些突出显示的区域中创建绽放/星形效果。
I would like to extract the white areas/bright areas of an image and place a custom objects in those areas. I need to know which framework to work with. if anyone has done something similar, I would appreciate an answer. I know how to get Pixel values, however the hard part is creating a Bloom/star effect in those highlighted areas.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以制作一个亮度值高于阈值的蒙版,然后模糊或任何蒙版并在图像上方合成。
You could make a mask where the luminance value was above a threshold, then blur or whatever the mask and composite above the image.