图像处理问题 [英] image processing problem

查看:95
本文介绍了图像处理问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨..
任何人都可以告诉这一行代码在图像处理中意味着什么.

Hi..
Can anyone telll what does this line of code means in image proocessing.

if (!((Math.Abs(red - green) < 65) || ((Math.Abs(red - blue) < 65)))) 

推荐答案

他们正在检查颜色分量之间的差异(可能以像素为单位).
(一个像素由红色,绿色,蓝色和用于透明度的alpha分量三个颜色组成).

第一个条件着眼于红色和绿色分量之间的差异,第二个条件着眼于红色和蓝色之间的差异.
这样做的原因纯粹是基于您将在此处尝试实现的.
They are checking for the difference between the color components, probably in a pixel.
(A pixel is composed of three color components red, green, blue and an alpha component for the transparency).

The first condition looks at the difference the red and green color components and the second one between red and blue.
The reason for this is purely based on what you would be trying to implement here.


这篇关于图像处理问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆