惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

WordPress大学
WordPress大学
Cyberwarzone
Cyberwarzone
The GitHub Blog
The GitHub Blog
云风的 BLOG
云风的 BLOG
P
Proofpoint News Feed
小众软件
小众软件
Recent Announcements
Recent Announcements
博客园 - 三生石上(FineUI控件)
Security Archives - TechRepublic
Security Archives - TechRepublic
W
WeLiveSecurity
Cloudbric
Cloudbric
博客园 - 司徒正美
美团技术团队
N
News and Events Feed by Topic
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
PCI Perspectives
PCI Perspectives
宝玉的分享
宝玉的分享
H
Help Net Security
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Google DeepMind News
Google DeepMind News
Help Net Security
Help Net Security
Last Week in AI
Last Week in AI
S
Schneier on Security
N
News | PayPal Newsroom
B
Blog RSS Feed
L
LINUX DO - 最新话题
T
Troy Hunt's Blog
S
Secure Thoughts
雷峰网
雷峰网
aimingoo的专栏
aimingoo的专栏
L
Lohrmann on Cybersecurity
G
Google Developers Blog
Microsoft Azure Blog
Microsoft Azure Blog
Hacker News - Newest:
Hacker News - Newest: "LLM"
T
Tenable Blog
S
Securelist
L
LangChain Blog
Recent Commits to openclaw:main
Recent Commits to openclaw:main
I
InfoQ
H
Heimdal Security Blog
Cisco Talos Blog
Cisco Talos Blog
F
Full Disclosure
Y
Y Combinator Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
K
Kaspersky official blog
T
Tailwind CSS Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
阮一峰的网络日志
阮一峰的网络日志
C
Cisco Blogs

博客园 - 代震军

重磅发布码农界的第一张吉他专辑小样 HRPlugin For Xcode发布(附源码地址) 当C++遇到iOS应用开发---LRUCache缓存 当C++遇到iOS应用开发---Dict集合 当C++遇到iOS应用开发之---List集合 当C++遇到iOS应用开发---字符串处理 当C++遇到iOS应用开发---SQLITE篇 开源ImageFilter库For IOS源码发布 开源ImageFilter库v0.3:新增22种图片效果 开源ImageFilter库v0.2:新增7类滤镜,支持12种图片效果 Android, WindowsPhone7, IOS ,vc2010平台40多套图片滤镜开源 Discuz!NT中的LLServer架构设计 LLServer1.0及C#客户端正式发布并开源 Mongodb源码分析--Replication之OpLog Mongodb源码分析--Replication之主从模式--Slave 这样的“牛”人最好别碰上 Mongodb源码分析--Replication之主从模式--Master Mongodb源码分析--链接池(ConnPool) Mongodb源码分析--Mongos之分布式锁
开源ImageFilter库v0.4:新增26种图片效果
代震军 · 2012-06-21 · via 博客园 - 代震军

      在原有70多种滤镜(v0.3)基础上,又新增实现26种图片效果。目前三个平台的源码已同步并测试完毕。

      有朋友反映在ios平台上使用时出现编译错误,这里需要说明的是,因为本人手上没有mac的本本,只是使用VC进行开发,并参照相应的object-c代码写了相应的转型程序,所以并不保证在xcode上100%的编译成功。但可以先尝试将invertfilter.h文件(源码中)改写成.mm文件(xcode会将其视为C++代码进行编译),这样就可以一步步将其余滤镜代码也写到object-c项目中了。

      下面是图片效果:

原图:

VideoFilter1

VideoFilter2

VideoFilter3

VideoFilter4

TileReflectionFilter1

TileReflectionFilter2

FillPatternFilter1

FillPatternFilter2

 

MirrorFilter1

MirrorFilter2

YCBCrLinearFilter1

YCBCrLinearFilter2

TexturerFilter1

TexturerFilter2

TexturerFilter3

TexturerFilter4

TexturerFilter5

HslModifyFilter1

HslModifyFilter2

HslModifyFilter3

HslModifyFilter4

HslModifyFilter5

HslModifyFilter6

HslModifyFilter7

HslModifyFilter8

HslModifyFilter9

    目前该库中默认效果达到99种。本人会在后续版本中开始重构代码并着手提升部分filter的执行效率(有朋友反映某些滤镜执行起来比较消耗资源,且时间过长) 。

   源码下载:
   https://github.com/daizhenjun/ImageFilterC  C++ for ios
   https://github.com/daizhenjun/ImageFilterForWindowsPhone  Windows Phone7
   https://github.com/daizhenjun/ImageFilterForAndroid  Android 2.1版本及以上

   
   原文链接:http://www.cnblogs.com/daizhj/archive/2012/06/21/2557550.html

   作者: daizhj, 代震军  
   微博: http://weibo.com/daizhj
   Tags: imagefilter, android,windowsphone,ios, vs2010,c++, java,c#