博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
一些图像处理算法
阅读量:4046 次
发布时间:2019-05-24

本文共 393 字,大约阅读时间需要 1 分钟。

   浮雕算法:

      r=(r-r)+number

b=(b-b)+number

 

g=(g-g)+number

 

模糊算法:

 

取一个像素块(3*35*57*7),求出像素块总的rgb值,然后取平均值做当前像素点的rgb值。

 

锐化算法:

 

r=r+(r-r)+number

 

b=b+(b-b)+number

 

g=g+(g-g)+number

 

其中r,g,b是像素对应的rgb值,r,g,b是该点相临像素的rgb值,number是决定浮雕效果的阀值,取值(100150)之间效果较好。

 

得到像素rgb值,可使用apigetpixel函数,函数原型可民自己去查一下(delphi ide中输入函数名按住ctrl键,然后用鼠标单击函数名)

 

tcolor=>rgb

 

r:=byte(bcolor)

 

b:=byte(bcolor shr 8)

 

g:=byte(bcolor shr 16)

转载地址:http://xbedi.baihongyu.com/

你可能感兴趣的文章
2020年终总结
查看>>
Homebrew指令集
查看>>
React Native(一):搭建开发环境、出Hello World
查看>>
React Native(二):属性、状态
查看>>
JSX使用总结
查看>>
React Native(四):布局(使用Flexbox)
查看>>
React Native(七):Android双击Back键退出应用
查看>>
Android自定义apk名称、版本号自增
查看>>
adb command not found
查看>>
Xcode 启动页面禁用和显示
查看>>
【剑指offer】q50:树中结点的最近祖先
查看>>
二叉树的非递归遍历
查看>>
【leetcode】Reorder List (python)
查看>>
【leetcode】Linked List Cycle (python)
查看>>
【leetcode】Linked List Cycle (python)
查看>>
【leetcode】Candy(python)
查看>>
【leetcode】Clone Graph(python)
查看>>
【leetcode】Sum Root to leaf Numbers
查看>>
【leetcode】Pascal's Triangle II (python)
查看>>
java自定义容器排序的两种方法
查看>>