-
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
-
chap4
程序代码说明
P0401:用Prewitt算子检测图像的边缘
P0402:用不同σ值的LoG算子检测图像的边缘
P0403:用Canny算子检测图像的边缘
P0404:图像的阈值分割
P0405:用水线阈值法分割图像
P0406:对矩阵进行四叉树分解
P0407:将图像分为文字和非文字的两个类别
P0408:形态学梯度检测二值图像的边缘
P0409:形态学实例——从PCB图像中删除所有电流线,仅保留芯片对象(Program code description
P0401: Detects the edge of an image with the Prewitt operator
P0402: LoG operator with different σ values is used to detect the edge of the image
P0403: Detects the edge of an image with the Canny operator
P0404: Threshold segmentation of the image
P0405: Image segmentation using watermark threshold method
P0406: Quadtree decomposition of the matrix
P0407: The image is divided into text and non-text of the two categories
P0408: Morphological gradient detects the edge of a binary image
P0409: Morphology Example- Deletes all current lines the PCB image, leaving only the chip object)
- 2016-11-05 20:16:14下载
- 积分:1
-
Z源逆变器的开路三相SVPWM调制
Open-circuit Three-phase SVPWM Modulation of Z-source Inverter
- 2019-05-29 19:54:10下载
- 积分:1
-
Z源逆变器的开路三相SVPWM调制
说明: Open-circuit Three-phase SVPWM Modulation of Z-source Inverter
- 2019-05-29 19:54:10下载
- 积分:1
-
change detection with IDL
关于遥感影像分类和变化检测的一本外文数据,其特色在于用IDL实现了很多经典算法,很值得借鉴!(Foreign language data on a remote sensing image classification and change detection, which feature IDL achieve many classical algorithm, it is worth learning!)
- 2012-10-11 11:42:53下载
- 积分:1
-
1234
图像处理中图像几何畸变校正程序,用于图像的广角畸变的校正。(Image processing procedures for image geometric distortion correction for images of wide-angle distortion correction.)
- 2010-06-01 16:01:47下载
- 积分:1
-
shearlet fast
快速剪切波变换的源程序,用于图像处理,运行速度快(Fast shear wave transform source, used for image processing, fast running)
- 2017-08-14 09:04:22下载
- 积分:1
-
image_mosaicking_SURF
采用surf算法对两幅较低重叠度的图像进行拼接(Image mosaic using surf algorithm)
- 2019-01-04 17:38:29下载
- 积分:1
-
harris_watermark
说明: 基于HARRIS特征点的数字水印的嵌入算法,以及数字水印的检测算法(Watermark embedding and Detection in image based on Harris features points)
- 2020-09-03 18:08:08下载
- 积分:1
-
duojieguoyuansu
本程序是多结构元素形态学滤波的探讨,通过选择不同的结构元素多尺度序列Bi,来得到最合适的结果(This program is a multi-structure elements of morphological filtering by selecting different multi-scale structure elements sequence Bi, get the most appropriate results)
- 2013-04-10 10:19:43下载
- 积分:1