资源简介
图像去除反光 效果很好 有代码 有论文
代码片段和文件信息
#include “qx_basic.h“
void qx_timer::start(){ m_begin=clock();}
float qx_timer::stop(){ m_end=clock(); return ( float(m_end-m_begin)/CLOCKS_PER_SEC );}
void qx_timer::time_display(char *disp){ printf(“Running time (%s) is: %5.5f Seconds.\n“dispstop());}
void qx_timer::fps_display(char *disp){ printf(“Running time (%s) is: %5.5f frame per second.\n“disp1.0f/stop());}
void boxcar_sliding_window_x(double *outdouble *inint hint wint radius)
{
double scale = 1.0f / (2*radius+1);
for (int y = 0; y < h; y++) {
double t;
// do left edge
t = in[y*w] * radius;
for (int x = 0; x < radius+1; x++) {
t += in[y*w+x];
}
out[y*w] = t * scale;
for(int x = 1; x < radius+1; x++) {
int c = y*w+x;
t += in[c+radius];
t -= in[y*w];
out[c] = t * scale;
}
// main loop
for(int x = radius+1; x < w-radius; x++) {
int c = y*w+x;
t += in[c+radius];
t -= in[c-radius-1];
out[c] = t * scale;
}
// do right edge
for (int x = w-radius; x < w; x++) {
int c = y*w+x;
t += in[(y*w)+w-1];
t -= in[c-radius-1];
out[c] = t * scale;
}
}
}
void boxcar_sliding_window_y(double *outdouble *inint hint wint radius)
{
double scale = 1.0f / (2*radius+1);
for (int x = 0; x < w; x++)
{
double t;
// do left edge
t = in[x] * radius;
for (int y = 0; y < radius+1; y++) {
t += in[y*w+x];
}
out[x] = t * scale;
for(int y = 1; y < radius+1; y++) {
int c = y*w+x;
t += in[c+radius*w];
t -= in[x];
out[c] = t * scale;
}
// main loop
for(int y = radius+1; y < h-radius; y++) {
int c = y*w+x;
t += in[c+radius*w];
t -= in[c-(radius*w)-w];
out[c] = t * scale;
}
// do right edge
for (int y = h-radius; y < h; y++) {
int c = y*w+x;
t += in[(h-1)*w+x];
t -= in[c-(radius*w)-w];
out[c] = t * scale;
}
}
}
void boxcar_sliding_window(double **outdouble **indouble **tempint hint wint radius)
{
boxcar_sliding_window_x(temp[0]in[0]hwradius);
boxcar_sliding_window_y(out[0]temp[0]hwradius);
}
void gaussian_recursive_x(double **oddouble **id int w int h double a0 double a1 double a2 double a3 double b1 double b2 double coefp double coefn)
{
double xp = 0.0f; // previous input
double yp = 0.0f; // previous output
double yb = 0.0f; // previous output by 2
for(int y=0;y {
xp = id[y][0]; yb = coefp*xp; yp = yb;
for (int x = 0; x < w; x++)
{
double xc = id[y][x];
double y
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2814896 2013-02-27 16:26 去反光\05206542.pdf
文件 1122289 2013-02-27 16:24 去反光\chp%3A10.1007%2F978-3-642-15561-1_7.pdf
文件 960038 2010-02-09 15:07 去反光\ECCV_10_supplementary_material\images\circle.ppm
文件 2487844 2008-10-18 21:46 去反光\ECCV_10_supplementary_material\images\fish.ppm
文件 163628 2009-03-15 21:08 去反光\ECCV_10_supplementary_material\images\head.ppm
文件 1896657 2010-03-18 19:14 去反光\ECCV_10_supplementary_material\images\pear.ppm
文件 120038 2010-02-09 22:40 去反光\ECCV_10_supplementary_material\images\synth.ppm
文件 1196667 2009-01-13 01:39 去反光\ECCV_10_supplementary_material\images\toys.ppm
文件 382 2010-06-09 14:46 去反光\ECCV_10_supplementary_material\qx_highlight_removal_bf.bat
文件 32768 2010-03-19 00:45 去反光\ECCV_10_supplementary_material\qx_highlight_removal_bf.exe
文件 840 2010-03-22 18:19 去反光\ECCV_10_supplementary_material\Readme.txt
文件 960038 2010-02-09 15:07 去反光\ECCV_10_supplementary_material\source code\circle.ppm
文件 11404 2013-02-28 19:59 去反光\ECCV_10_supplementary_material\source code\Debug\BuildLog.htm
文件 69 2013-02-28 19:59 去反光\ECCV_10_supplementary_material\source code\Debug\mt.dep
文件 49065 2013-02-28 09:54 去反光\ECCV_10_supplementary_material\source code\Debug\qx_basic.obj
文件 63944 2013-02-28 09:54 去反光\ECCV_10_supplementary_material\source code\Debug\qx_ctbf_ss.obj
文件 58195 2013-02-28 09:54 去反光\ECCV_10_supplementary_material\source code\Debug\qx_highlight_removal_bf.obj
文件 32217 2013-02-28 19:59 去反光\ECCV_10_supplementary_material\source code\Debug\qx_highlight_removal_bf_main.obj
文件 92160 2013-02-28 19:59 去反光\ECCV_10_supplementary_material\source code\Debug\qx_highlight_removal_using_bilateral_filtering.exe
文件 663 2013-02-28 09:54 去反光\ECCV_10_supplementary_material\source code\Debug\qx_highlight_removal_using_bilateral_filtering.exe.em
文件 728 2013-02-28 09:54 去反光\ECCV_10_supplementary_material\source code\Debug\qx_highlight_removal_using_bilateral_filtering.exe.em
文件 621 2013-02-28 19:59 去反光\ECCV_10_supplementary_material\source code\Debug\qx_highlight_removal_using_bilateral_filtering.exe.intermediate.manifest
文件 439972 2013-02-28 19:59 去反光\ECCV_10_supplementary_material\source code\Debug\qx_highlight_removal_using_bilateral_filtering.ilk
文件 773120 2013-02-28 19:59 去反光\ECCV_10_supplementary_material\source code\Debug\qx_highlight_removal_using_bilateral_filtering.pdb
文件 125021 2013-02-28 19:59 去反光\ECCV_10_supplementary_material\source code\Debug\qx_ppm.obj
文件 314368 2013-02-28 19:59 去反光\ECCV_10_supplementary_material\source code\Debug\vc90.idb
文件 217088 2013-02-28 19:59 去反光\ECCV_10_supplementary_material\source code\Debug\vc90.pdb
文件 2487844 2008-10-18 21:46 去反光\ECCV_10_supplementary_material\source code\fish.ppm
文件 163628 2009-03-15 21:08 去反光\ECCV_10_supplementary_material\source code\head.ppm
文件 1196667 2009-01-13 01:39 去反光\ECCV_10_supplementary_material\source code\image1.ppm
............此处省略59个文件信息
- 上一篇:dev设置皮肤字体折叠菜单伸缩Panel实现
- 下一篇:百万邮件系统多机版.rar
评论
共有 条评论