【问题标题】:Mac PhotoBooth dent effect in iOSiOS 中的 Mac PhotoBooth 凹痕效果
【发布时间】:2013-06-28 09:26:37
【问题描述】:

我正在尝试在 UIImage 上实现各种失真效果。我找到了GPUImage 框架对于漩涡,凸出,捏,拉伸,球体,GlassSphere等具有魅力。但现在我想应用凹痕效果,我们可以在macbook Photo亭应用程序中看到它。我们如何才能达到这样的效果任何想法?

【问题讨论】:

  • 看看Core Image。
  • 嗨@TBlue,我不确定核心图像是否可以处理凹痕效果。

标签: iphone ios objective-c ios6 core-image


【解决方案1】:

Photo Booth 凹痕效果只是带有负比例的凸起变形。照相亭:

GPUImageBulgeDistortionFilter 负比例:

我很惊讶您在尝试各种过滤器时不会看到这一点。

【讨论】:

  • 嗨布拉德,感谢您的回复。我试过 GPUImageBulgeDistortionFilter。但是我们如何应用负比例的 GPUImageBulgeDistortionFilter。你能帮我吗?
  • @Hrishikesh - filter.scale = -1.0
  • 非常感谢。它对我帮助很大:)
【解决方案2】:

Tutorial on using CIFilters in iOS 6

CIFilter class reference

List of the CIFilters - 如果我是你,我会好好研究一下 CICategoryDistortionEffect,随便玩玩吧 :)

【讨论】:

  • 他对Core Image不感兴趣。
  • 他说,他不确定Core Image 是否可以处理凹痕效果。我发布了指向他可以用来获得这种效果的各个核心图像过滤器的链接。
  • 您好,我认为 CICategoryDistortionEffect 确实对我有帮助。我会尝试和我没有对核心图像说不的家伙。我说我不知道​​有凹痕效果的核心图像。
  • CICategoryDistortionEffect 的属性有 CIBumpDistortion、CIBumpDistortionLinear、CICircleSplashDistortion、CIHoleDistortion、CILightTunnel、CIPinchDistortion、CITwirlDistortion、CIVortexDistortion
  • 不包含凹痕效果。所以我会尝试做一些其他的效果。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2012-04-29
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多