-
灰度算法
Gray Scale Image 或是Grey Scale Image,又称灰阶图。把白色与黑色之间按对数关系分为若干等级,称为灰度。灰度分为256阶。用灰度表示的图像称作灰度图。除了常见的卫星图像、航空照片外,许多地球物理观测数据也以灰度表示。以位场图像为例,把位场表示为灰度图,需要将位场观测值灰度量化,即将场的变化范围转换成256阶的灰度范围。由于位场的动态变化范围非常大,磁场可达数万个纳特,重力场也可能在数百个重力单位内变化,所以在显示为图像前通常需要对位场观测值进行拉伸或压缩。[1]什么叫灰度图?任何颜色都有红、绿、蓝三原色组成,假如原来某点的颜色为RGB(R,G,B),那么,我们可以通过下面几种方法,将其转换为灰度:1.浮点算法:Gray=R*0.3+G*0.59+B*0.112.整数方法:Gray=(R*30+G*59+B*11)/1003.移位方法:Gray =(R*76+G*151+B*28)>>8;4.平均值法:Gray=(R+G+B)/3;5.仅取绿色:Gray=G;通过上述任一种方法求得Gray后,将原来的RGB(R,G,B)中的R,G,B统一用Gray替换,形成新的颜色RGB(Gray,Gray,Gray),用它替换原来的RGB(R,G,B)就是灰度图了。
- 2022-01-27 13:44:07下载
- 积分:1
-
太阳辐射计算
计算太阳辐射的程序:(1)计算太阳在水平面上的瞬时辐照度和平均辐照度;(2)计算太阳在倾斜面上的瞬时辐照度和平均辐照度;(3)计算太阳的赤纬角、高度角、时角等。很有帮助作用。
- 2022-06-20 17:42:11下载
- 积分:1
-
A program to demonstrate the optimization process of particle swarm optimization...
A program to demonstrate the optimization process of particle swarm optimization. A two-dimensional objective function is visualized by level of grey: the lighter the color, the higher the function value. The particles are shown as red circles, their trajectory as red lines.-A program to demonstrate the optimization process of particle swarm optimization. A two- dimensional objective function is visualized by level of gray : the lighter the color, the higher the value function. The particles ar e shown as red circles. their trajectory as red lines.
- 2022-10-27 02:55:03下载
- 积分:1
-
卷积和逆卷积的快速算法
卷积和逆卷积的快速算法-the quick algorithm of convolution and reconvolution
- 2023-06-04 00:35:03下载
- 积分:1
-
为使网格的代数方法
algebric method to make mesh
- 2023-07-11 08:15:02下载
- 积分:1
-
迭代回朔算法是计算机中很常用的算法, 我的程序是一个八皇后问题。...
迭代回朔算法是计算机中很常用的算法, 我的程序是一个八皇后问题。-back Schomburg iterative algorithm is quite commonly used computer algorithms, the procedure is a Queen"s eight issues.
- 2023-04-02 20:05:03下载
- 积分:1
-
Kruskal 算法
懂得此源代码演示Kruskal 生成树算法
- 2023-08-13 07:00:03下载
- 积分:1
-
一个能解中国古代算数定理(即孙子定理)的小程序
一个能解中国古代算数定理(即孙子定理)的小程序-a solution can count theorem Ancient China (grandson theorem) of small programs
- 2023-04-16 04:00:04下载
- 积分:1
-
crc32 算法的delphi实现。并且可以对指定文件进行校验。
crc32 算法的delphi实现。并且可以对指定文件进行校验。-CRC32 algorithm delphi realize. And can be carried out to check the specified file.
- 2022-04-26 22:52:18下载
- 积分:1
-
svm 算法有实例
内附源码以及数据,参考文献。 老师上课给的资料。有用来聚类分析。 有学习和训练之分。初学者可以用来体验svm,非常好的实例。。有算法的详细解释外加注解
- 2022-01-26 05:33:53下载
- 积分:1