Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - INT 1
Search - INT 1 - List
canny 算法 void CreatGauss(double sigma, double **pdKernel, int *pnWidowSize) void GaussianSmooth(SIZE sz, LPBYTE pGray, LPBYTE pResult, double sigma) void Grad(SIZE sz, LPBYTE pGray, int *pGradX, int *pGradY, int *pMag) void NonmaxSuppress(int *pMag, int *pGradX, int *pGradY, SIZE sz, LPBYTE pNSRst) void EstimateThreshold(int *pMag, SIZE sz, int *pThrHigh, int *pThrLow, LPBYTE pGray, double dRatHigh, double dRatLow) void Hysteresis(int *pMag, SIZE sz, double dRatLow, double dRatHigh, LPBYTE pResult) void TraceEdge(int y, int x, int nThrLow, LPBYTE pResult, int *pMag, SIZE sz) void Canny(LPBYTE pGray, SIZE sz, double sigma, double dRatLow, double dRatHigh, LPBYTE pResult)
Date : 2008-10-13 Size : 8.83kb User : 穆阿军

RawSource (string filename, int width, int height, string pixel_type, int offset) # for loading raw video data # # filename: the raw file e.g. a YUV-file # width, height: you must specify the image dimensions. width is max 2880 # pixel_type: the type of the raw data. An appropriate mapping to AviSynth s internal data is done # supported types: RGB, RGBA, BGR, BGRA, YUYV, UYUV (interleaved) I420, YV12 (planar)
Date : 2008-10-13 Size : 34.36kb User : mysticboy

程序只支持BMP256色灰度图像 方法主要是4种细化算法还有找兴趣点 在int _tmain()中注释“应用部分”换不同的函数方法就可以使用。
Date : 2008-10-13 Size : 2.3mb User : 仇雨

This file include the DCT and IDCT transform of an image. void show_DCT( void ) void DCT_8x8( float* data ) void IDCT_8x8( float* data ) void BDCT( float* input,int rows,int cols ) void BIDCT( float* input,int rows,int cols ) void get_8x8DCT( float* output, int pos_y, int pos_x, float* image, int rows, int cols ) void set_identity( float* data, int size, bool flag ) float* mult_8x8( float*data1,float*data2 ) float* sm_mult_8x8( float *C1, float *A, float *C2 ) float* add_8x8( float*data1,float*data2 ) void initial_fast() void close_fast() void get_fast_8x8DCT_sparse( float* output, int pos_y, int pos_x, float* input, int rows, int cols ) void get_fast_8x8DCT( float* output, int pos_y, int pos_x, float* input, int rows, int cols, bool sparse )
Date : 2008-10-13 Size : 4.93kb User : wan_xianglin

This file include some image process program: void ImResize(IMAGEDATA *pRtImg, IMAGEDATA *pSrImg, int nFixSize) bool CalMoments(float Moments[7], IMAGEDATA *pSrImg) void RGB2Gray(IMAGEDATA *pRtImg, IMAGEDATA *pSrImg) void Im2Bw(IMAGEDATA *pRtImg, IMAGEDATA *pSrImg) float Graythresh(IMAGEDATA *pImgData) void MomentInvar(double Moments[7], IMAGEDATA *ret) bool CalGabor(float Gabor[32], IMAGEDATA *pSrImg) void TexGabor(float Gabor1[MM*NN],float Gabor2[MM*NN],IMAGEDATA *przImg) int FloatSearch(MATRIX *pData, int *nLabels, int d, int delta, int r, TSubset *bset)
Date : 2008-10-13 Size : 12.14kb User : wan_xianglin

Hough变换 BOOL Hough(HWND hWnd){ //定义一个自己的直线结构 typedef struct{ int topx //最高点的x坐标 int topy //最高点的y坐标 int botx //最低点的x坐标 int boty //最低点的y坐标 }MYLINE DWORD BufSize LPBITMAPINFOHEADER lpImgData LPSTR lpPtr HDC hDc LONG x,y long i,maxd int k int Dist,Alpha HGLOBAL hDistAlpha,hMyLine int *lpDistAlpha MYLINE *lpMyLine,*TempLine,MaxdLine static LOGPEN rlp={PS_SOLID,1,1,RGB(255,0,0)} HPEN rhp //我们处理的实际上是256级灰度图,不过只用到了0和255两种颜色。 if( NumColors!=256){ MessageBox(hWnd,\"Must be a mono bitmap with grayscale palette!\", \"Error Message\",MB_OK|MB_ICONEXCLAMATION) return FALSE }
Date : 2008-10-13 Size : 1.87kb User : sunrise

这个是一个基于logistic混沌系统单项散列函数,调用get_logisit(int* logisit, int length, int max_value, double XX)函数,返回一组logisitic随机数,随机数的最大值为max_value,初始值XX,随机数由初始值XX唯一确定。在数字水印技术等方面使用非常广泛,也许使用VC语言处理图像或是数字水印方面的用户会经常使用。 谢谢!
Date : 2008-10-13 Size : 941byte User : 莫雨

RawSource (string filename, int width, int height, string pixel_type, int offset) # for loading raw video data # # filename: the raw file e.g. a YUV-file # width, height: you must specify the image dimensions. width is max 2880 # pixel_type: the type of the raw data. An appropriate mapping to AviSynth s internal data is done # supported types: RGB, RGBA, BGR, BGRA, YUYV, UYUV (interleaved) I420, YV12 (planar)
Date : 2026-01-07 Size : 34kb User : mysticboy

程序只支持BMP256色灰度图像 方法主要是4种细化算法还有找兴趣点 在int _tmain()中注释“应用部分”换不同的函数方法就可以使用。-Process only supports BMP256 color gray image method is mainly there are four kinds of thinning algorithm to find points of interest in the int _tmain () in the Notes for the
Date : 2026-01-07 Size : 2.3mb User : 仇雨

这个是一个基于logistic混沌系统单项散列函数,调用get_logisit(int* logisit, int length, int max_value, double XX)函数,返回一组logisitic随机数,随机数的最大值为max_value,初始值XX,随机数由初始值XX唯一确定。在数字水印技术等方面使用非常广泛,也许使用VC语言处理图像或是数字水印方面的用户会经常使用。 谢谢!-This is a logistic chaotic system based on single hash function, call get_logisit (int* logisit, int length, int max_value, double XX) function, the return of a group of logisitic random numbers, random number for the maximum max_value, the initial value of XX, random number from the initial value only to determine XX. In digital watermarking technology is widely used, perhaps using the VC language processing aspects of digital watermarking images or the users will be frequently used. Thanks!
Date : 2026-01-07 Size : 1kb User : 莫雨

c语言计算几何 三角化 Ch1, Code 1.14 凸形外壳[2D] Ch3, Code 3.8 凸形外壳[3D] Ch4, Code 4.8 球 Chapter 4, Fig. 4.15 德劳内类型 Ch5, Code 5.2 ...See *English version.-\Computational Geometry in C\ the book s recipe Triangulate Chapter 1, Code 1.14 /tri Convex Hull[2D] Chapter 3, Code 3.8 /graham Convex Hull[3D] Chapter 4, Code 4.8 /chull sphere.c Chapter 4, Fig. 4.15 /sphere Delaunay Triang Chapter 5, Code 5.2 /dt SegSegInt Chapter 7, Code 7.2 /segseg Point-in-poly Chapter 7, Code 7.13 /inpoly Point-in-hedron Chapter 7, Code 7.15 /inhedron Int Conv Poly Chapter 7, Code 7.17 /convconv Mink Convolve Chapter 8, Code 8.5 /mink Arm Move Chapter 8, Code 8.7 /arm
Date : 2026-01-07 Size : 56kb User : XJ

老外编的的程序,可以成功运行,推荐下载学习-mosaic.m Code Description The mosaic.m script operates as follows: First, it converts the values of the images from unsigned int to double. This is done because most of the MATLAB operations use double as default type. Then, it asks for the points to be matched. Once it has this information it performs a transformation based on an estimate. The value of each pixel is then chosen using a bilinear interpolation. Finally, the mosaicked image is displayed.
Date : 2026-01-07 Size : 73kb User : jiajia

工程名为DctQuant,编程实现了一帧CIF格式4:2:0的YUV图像的H.264的整数变换、量化以及逆量化、逆变换。具体的功能表述如下: 1、首先按“打开YUV”按钮,选择一帧格式为CIF的4:2:0的YUV图像(默认的YUV图像的格式为4:2:0的CIF格式)。选择完成后,可以看到显示的输入图像。 2、输入QP值,QP是0到51之间的整数值,超出范围,会弹出对话框提示。QP默认为28。注意:当改变QP值为0时,即没有量化,则点击转换按钮显示出的PSNR值即为输入图像的PSNR值。 3、点击转换按钮,可以看到经过变换量化和逆量化逆变换过程以后输出的图像以及显示输出图像的PSNR值(保留小数点后6位)和默认4x4块号为0的原始各像素值、整数变换后的值、量化后、逆量化后、逆变换后的值。 4、可以手动改变块号,块号的范围为0-6335,超出范围会弹出对话框提示。然后单击“输入块号”按钮即可显示此块号对应的原始各像素值、整数变换后的值、量化后、逆量化后、逆变换后的值。 -Works entitled DctQuant, programming of a CIF format, 4:2:0 YUV images H.264 integer transform, quantization, and inverse quantization, inverse transform. Expression of specific functions are as follows: 1, first press the "Open YUV" button, select a format for the CIF of the 4:2:0 YUV image (the default YUV image format 4:2:0 CIF format). Selection is complete, you can see displayed in the input image. 2, enter the QP value, QP is an integer between 0-51 values out of range, will pop-up dialog box prompt. QP default is 28. Note: When changing the QP value is 0, that is not quantified, then click the convert button to show the PSNR values of the PSNR values shall be the input image. 3, click the Convert button, you can see through the transformation inverse quantization and inverse quantization output of the image after the transformation process and display the output image PSNR values (retention decimal 6), and the default 4x4 block No. 0 of the original values of each pixel , int
Date : 2026-01-07 Size : 436kb User : 王婉君

图像的矩阵运算 用于图像像素的尺度变换,归一化;图像读取,阈值分割,矩阵的加减乘数运算,以及图像的读写;数据类型支持int,double,以及复数complex类型-Image matrix operations for image pixels scale transformation, normalization image reads, threshold segmentation, the multiplier matrix addition and subtraction operations, as well as images of reading and writing data type support int, double, and complex type of complex
Date : 2026-01-07 Size : 124kb User : Jack

自己写的一个简单的将输入数据画出直方图并且可以保存为图像的类,数组不能大于1000,有一个简单的例子,需要opencv库支持-draw histogram image of an int array
Date : 2026-01-07 Size : 9kb User : jbaolee

上传截切图片到服务器硬盘上,现显示到网页上 Default3.aspx---System.Drawing.Image image = Clipboard.GetImage() -Upload Images Using C# System.Drawing.Image image = Clipboard.GetImage() if (image != null) { System.Drawing.Bitmap bitmap = new System.Drawing.Bitmap(image) int i = DateTime.Now.Millisecond string filename = "pic"+ i+ ".jpg" string path = @"d:\stu\DemoTest09\DemoTest09\update_gif\"+ filename bitmap.Save(path) TextBox1.Text = path img1.Src = @"./update_gif/"+ filename Image1.ImageUrl = @"./update_gif/"+ filename image2.Src = @"./update_gif/"+ filename aid01.HRef = @"./update_gif/"+ filename }
Date : 2026-01-07 Size : 389kb User : 李信

DL : 0
·· opencv ··· 基础程序中的模块匹配 -[code]#include <cv.h> #include <cxcore.h> #include <highgui.h> #include <stdio.h> int main( int argc, char** argv ) { IplImage*src,*templ,*ftmp[6] //ftmp will hold results int i if( argc == 3){ //Read in the source image to be searched: if((src=cvLoadImage(argv[1], 1))== 0) { printf("Error on reading src image s\n",argv[i]) return(-1) }
Date : 2026-01-07 Size : 3.1mb User : 燕子一舞

Otsu算法步骤如下: 设图象包含L个灰度级(0,1…,L-1),灰度值为i的的象素点数为Ni ,图象总的象素点数为N=N0+N1+...+N(L-1)。灰度值为i的点的概率为: P(i) = N(i)/N. 门限t将整幅图象分为暗区c1和亮区c2两类,则类间方差σ是t的函数: σ=a1*a2(u1-u2)^2 (2) 式中,aj 为类cj的面积与图象总面积之比,a1 = sum(P(i)) i->t, a2 = 1-a1 uj为类cj的均值,u1 = sum(i*P(i))/a1 0->t, u2 = sum(i*P(i))/a2, t+1->L-1 该法选择最佳门限t^ 使类间方差最大,即: 令Δu=u1-u2,σb = max{a1(t)*a2(t)Δu^2}-int otsu (IplImage*image, int rows, int cols, int x0, int y0, int dx, int dy, int vvv) { unsigned char*np // 图像指针 int thresholdValue=1 // 阈值 int ihist[256] // 图像直方图,256个点 int i, j, k // various counters int n, n1, n2, gmin, gmax double m1, m2, sum, csum, fmax, sb ·····
Date : 2026-01-07 Size : 1.48mb User : 燕子一舞

DL : 0
为对图像的缺损部分进行快速自动修复, 提出了一种基于曲率驱动修复模型的快速图像修复算法。曲率驱动修复模 型由于引入了曲率项, 使其偏微分方程为高阶, 修复时需要数值求解偏微分方程, 大量迭代运算导致修复速度非常缓慢。为 加快修复速度, 算法将模型的偏微分方程数值化, 进一步改造成加权平均形式, 利用邻近已知像素直接合成损坏像素, 加权 系数由曲率和梯度共同确定, 使修复按照图像等照度线方向进行, 在曲率大的地方将等照度线拉伸, 同时由待修复点邻域内 已知像素的梯度方差确定修复次序。实验结果表明, 显著-Curvature Driven D iffusions( CDD) model is proposed he re. Because the Partial D iffe rentia l Equa􀀁 tion( PDE) of CDD model is high order equation as its curvature item, in wh ich, much iterative ca lculation is in need to num er ica lly so lve the PDE and th is leads tom uch tim e consum ing. To inpa int the dam aged im ag e rapidly, a we igh􀀁 ted m ean equa tion is got by mod ify ing the num erica lPDE of CDD model firstly, then the new p ixe l is produced by in􀀁 terpo la ting the dam aged pix elw ith its ne ighborhood pixels w eigh ted m ean, the we ighted factors are decided by grad ient and curvature item s. This can m ake interpo la tion pro cessed accord ing to isophote d irection, and the isopCurvature Driven D iffusions( CDD) model is proposed he re. Because the Partial D iffe rentia l Equa􀀁 tion( PDE) of CDD model is high order equation as its curvature item, in wh ich, much iterative ca lculation is in need to num er ica lly so lv
Date : 2026-01-07 Size : 340kb User : 孙红娟

运用C++检测人眼, 2)用opencv中检测人脸、眼睛、嘴巴等都是用的CascadeClassifier分类器,具体使用时可以使用C的函数,也可以使用opencv中使用C++封装好的类。下面是它们检测目标时的函数形式(从opencv官网复制的) C: CvSeq* cvHaarDetectObjects(const CvArr* image, CvHaarClassifierCascade* cascade, CvMemStorage* storage, double scale_factor=1.1, int min_neighbors=3, int flags=0, CvSize min_size=cvSize(0,0), CvSize max_size=cvSize(0,0) ) C++: void CascadeClassifier::detectMultiScale(const Mat& image, vector<Rect>& objects, double scaleFactor=1.1, int minNeighbors=3, int flags=0, Size minSize=Size(), Size maxSize=Size()) 这两者最大的区别在于,用C封装的函数要自己手动分配内存,而用C++的形式则不用自己去分配内存,这就是很多同学在网上找到的代码有些要分配内存,有些又不用分配内存的原因。显然C++的形式更简洁,所以我下面的代码也是用的C++的函数。- Detected with opencv face, eyes, mouth, etc. are used CascadeClassifier classification, you can use C functions specific use, you can use opencv use C++ classes packaged. Here is the form of the function when they detect target (copied the opencv official website)
Date : 2026-01-07 Size : 2.53mb User : 刘卓
« 12 3 »
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.