-
chenggongchengxu
rgb to HSV,很有用,调试成功,可以应用(rgb to HSV,#include "stdafx.h"
#include <iostream.h>
void main(float R, float G, float B, float& H, float& S, float&V)
{
// r,g,b values are from 0 to 1
// h = [0,360], s = [0,1], v = [0,1]
// if s == 0, then h =-1 (undefined)
float min, max, delta,tmp
tmp = R>G?G:R
min = tmp>B?B:tmp
tmp = R>G?R:G
max = tmp>B?tmp:B
V = max // v
delta = max- min
if( max != 0 )
S = delta/max // s
else
{
// r = g = b = 0 // s = 0, v is undefined
S = 0
H = 0
return
}
if (delta == 0){
H = 0
return
}
else if(R == max){
if (G >= B)
H = (G- B)/delta // between yellow & magenta
else
H = (G- B)/delta+ 6
}
else if( G == max )
H = 2+ ( B- R )/delta // between cyan & yellow
else if (B == ma)
- 2011-12-02 10:09:24下载
- 积分:1
-
CLG-TV-matlab
CLG光流算法代码,包含误差分析,TV算法经典(CLG optical flow algorithm code, including error analysis, TV classic algorithm)
- 2021-04-23 16:08:48下载
- 积分:1
-
huffman
对图像进行哈夫曼编码并且能够解码,可以在命令行中选择图像地址(Huffman encoding and decoding of images)
- 2019-04-08 20:49:14下载
- 积分:1
-
MATLA
《信息隐藏实验教程》源代码,希望对大家有所帮助(" Information Hiding experimental course," the source code)
- 2009-05-14 20:32:21下载
- 积分:1
-
level-set-paper
水平集方法及其在图像分割中的应用研究。09年中科大的博士论文,很详细的讲解了水平集在图像分割中的应用(Level set method and its application in image segmentation study. Cultivation of doctoral thesis in 2009, a very detailed explanation of the level set image segmentation in)
- 2011-11-22 12:07:01下载
- 积分:1
-
Pilot
关于导频的算法,可以给一些新手提供一些帮助,但是不敢保证一定正确,请见谅(About pilots algorithm can give some newcomers to provide some help, but can not guarantee a certain right , please forgive me)
- 2014-06-05 18:41:38下载
- 积分:1
-
Three-dimensional-algorithm
关于MC三维重建算法的二义性消除的文章,很好的消除了MC算法中的二义性(it s the article about Three-dimensional reconstruction algorithm to eliminate ambiguity in MC)
- 2014-01-17 13:19:26下载
- 积分:1
-
10
说明: 在IDL中将.nc格式的数据读取并绘图,文件夹中附有示例数据。(Reading and drawing data in.Nc format in IDL)
- 2018-01-14 18:00:51下载
- 积分:1
-
lizilvbo
五种粒子滤波仿真,便于初学者学习粒子滤波算法(Five particle filter simulation, easy for beginners to learn particle filter)
- 2021-01-22 11:08:45下载
- 积分:1
-
opencv4.3
自主选择性的查看一幅图像中的部分区域的颜色直方图:允许用户在一幅图像中选择一个矩形区域,通过按住鼠标键画一个矩形,当鼠标放开是,高亮显示矩形框,同时在另一个独立的窗口中,使用画图函数画一个图表(选定区域的颜色直方图),分别用蓝,绿,红表示选中区域中每种颜色的像素数量。(Self-selective color in an image to view a partial area of the histogram: Allows the user to select a rectangular area in an image by holding down the mouse button to draw a rectangle when the mouse is released, the highlighted rectangle, Meanwhile in a separate window, using the drawing functions to draw a chart (selected color histogram region), respectively, with blue, green, red indicates the number of pixels in the selected area of each color.)
- 2014-02-13 16:18:41下载
- 积分:1