自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(3)
  • 资源 (1)
  • 收藏
  • 关注

转载 基于点锐度的清晰度算法 EAV

最近研究CCD的自动调焦问题,其中一个关注点就是清晰度评价函数,下面是关于点锐度清晰度算法的描述:

2014-12-19 11:16:48 6232

转载 windows vs2010 编译 zint

zint是依赖libpng库和zlib库的,所以先把三者下载下来,我下载的版本是:zint-2.4.2、zlib-1.2.8、libpng-1.6.12。1、首先在D盘建立一个叫opt的文件夹,里面建立两个文件夹lib和include,因为zint默认的配置就是用的这两个文件夹,这样之后编译可以少改点东西。2、将libpng和zlib解压到同一个文件夹,我都解压到D:\opt目录了

2014-12-11 13:32:03 1537

原创 根据.dll文件生成.lib文件

有些linux下的开源源码编译后只生成.dll文件,为了在vc中使用,需要生成.lib文件。步骤如下:1. 打开Visual Studio命令提示窗口,切换到.dll路径下2. 使用dumpbin命令:dumpbin /exports libzbar-0.dll >lib.txtlib.txt内容如下:Microsoft (R) COFF/PE

2014-12-10 13:29:48 815

c++ event示例

If you want to create a C++ class that calls clients' functions (events), you can do that in two ways. The first way is to call a global function through a function pointer that is a private member of your class. The client has to set that function pointer if it wants to handle that event. So, your class has two constructors, one with a function pointer and the other without it. If the client wants to handle an event, it has to create an instance of your class with the constructor that has a function pointer as the argument. The second way is to call a class member function of the client class through the interface that is provided with your class package. The client has to inherit that interface and implement an event function if it wants to handle that event. So, your class has two constructors, one with an event interface pointer and the other without it. If the client wants to handle an event, it has to create an instance of your class with the constructor that has a function pointer as the argument; for example, "CEvent(this)". Here is the code for both ways。

2014-11-28

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除