- 博客(41)
- 资源 (173)
- 收藏
- 关注
翻译 chapter 8 Compilation, Execution, and Errors
Although we refer to Lua as an interpreted language, Lua always precompilessource code to an intermediate form before running it.Previously, we introduced dofile as a kind of primitive opera
2013-11-29 18:41:05 1167
翻译 Chapter 7Iterators and the Generic for
7.1 Iterators and ClosuresAn iterator is any construction that allows you to iterate over the elements of acollection. In Lua, we typically represent iterators by functions:each time wecall th
2013-11-28 18:57:51 778
转载 安装OpenCV for MAC
在这里特别提醒大家: opencv中文官方网站介绍的“opencv在Mac OS系统下的安装方法”已经严重过期,我已经试过了,失败,而且这个方法不是opencv for mac的,而是opencv for IOS的,希望大家不要再走弯路尝试了。http://www.opencv.org.cn/forum/viewtopic.php?f=1&t=7524&start=0http:/
2013-11-27 20:37:54 2582 1
翻译 turned on verbose logging for linking and checked to see if anything suspicious is going on
turned on verbose logging for linking and checked to see if anything suspicious is going onProjects Properties > Linker > GeneralShow Progress = Display all progress messages (/VERBOSE)(这个选项
2013-11-27 18:44:58 862
翻译 Property Manger,配置我们自己的lib.
Property Manger. You can bring up this with View ‣ Property Pages. Expand it and you can see the existing rule packages (calledProporty Sheets).The really useful stuff of these is that you m
2013-11-27 18:43:23 616
翻译 Chapter 6 More about Functions
Functions in Lua are first-class values with proper lexical scoping.What does it mean for functions to be “first-class values”? It means that,in Lua, a function is a value with the same rights as
2013-11-27 15:45:27 1054
翻译 chapter 5 Functions
if the function call has no arguments, we still must write an empty list () to denote the call.There is a special case to this rule: if the function has one single argument and that argumen
2013-11-26 13:09:32 797
转载 在Visual Studio 2012下面编译opencv 2.4.3
安装CMake从CMake的官方网站下载最新版的CMake。http://www.cmake.org/cmake/resources/software.html,选择Windows (Win32 Installer)平台的进行下载。安装时请勾选上“Add CMake to the system PATH for all users”。http://www.cmake.org/c
2013-11-25 14:06:42 1148
转载 直方图规定化
直方图规定化 原理: 在实际应用中,希望能够有目的地增强某个灰度区间的图像, 即能够人为地修正直方图的形状, 使之与期望的形状相匹配,这就是直方图规定化的基本思想。换句话说,希望可以人为地改变直方图形状,使之成为某个特定的形状,直方图规定化就是针对上述要求提出来的一种增强技术,它可以按照预先设定的某个形状来调整图像的直方图。直方图规定化是在运用均衡化原理的基础上,通过建立原始图
2013-11-24 20:20:04 14039
转载 直方图均衡化
直方图均衡化直方图均衡化(Histogram Equalization)是直方图最典型的应用,是图像点运算的一种。对于一幅输入图像,通过运算产生一幅输出图像,点运算是指输出图像的每个像素点的灰度值由输入像素点决定,即:直方图均衡化是通过灰度变换将一幅图像转换为另一幅具有均衡直方图,即在每个灰度级上都具有相同的象素点数过程。从分布图上的理解就是希望原始图像中y轴的值在新的分布中尽可能
2013-11-24 19:21:17 1684
翻译 chapter 4 Statements
4.1 Assignmenta = "hello" .. "world"t.n = t.n + 1 multiple assignment, elements separated by commas. For instance, in the assignmenta, b = 10, 2*xthe variable a gets the value 10 and b get
2013-11-22 16:02:33 1074
转载 [机器学习]基于OpenCV实现最简单的数字识别
http://blog.csdn.net/jinzhuojun/article/details/8579416本文将基于OpenCV实现简单的数字识别。这里以游戏Angry Birds为例,通过以下几个主要步骤对其中右上角的分数部分进行自动识别。1. 学习分类器根据训练样本,选取模型训练产生数字分类器。这里的样本可以是通用的数字样本库(如NIST等),也可以是针对应用场景而
2013-11-22 15:20:37 50678 65
翻译 chapter 3Expressions
math.floor 功 能: 返回小于或者等于指定表达式的最大整数 .The following rule defines the modulo operator:a % b == a - math.floor(a/b)*b ,取模竟然可以这样表达出来For integer operands, it has the usual meaning, with the result al
2013-11-22 14:23:31 1070
转载 图像处理和图像识别中常用的OpenCV函数
1. cvLoadImage:将图像文件加载至内存;2. cvNamedWindow:在屏幕上创建一个窗口;3. cvDestroyWindow:销毁显示图像文件的窗口;4. cvDestroyAllWindows:销毁显示图像文件的所有窗口;5. cvShowImage:在一个已创建好的窗口中显示图像;6. cvWaitKey:使程序暂停,等待用户触发
2013-11-21 18:45:40 2216
转载 使用OpenCV开发iOS图像处理应用(To be continued..)
呃,OpenCV(中文)是Intel主导的开源图像处理函数库,基于C语言编写,是图像处理领域居家旅行必备、男女老少咸宜的开发库。上学的时候用OpenCV做过图像处理方面的开发,现在刚接触iOS,了解了一下OpenCV在iOS平台的配置和开发方法,配置过程和遇到的问题简单做一下记录。环境配置OpenCV src首先把最新版本的OpenCV代码下载或co到本地,比如我把OpenCV-2
2013-11-21 17:06:36 2139
转载 OpenCV iOS - Video Processing
This tutorial explains how to process video frames using the iPhone’s camera and OpenCV.Prerequisites:Xcode 4.3 or higherBasic knowledge of iOS programming (Objective-C, Interface Builder)
2013-11-21 17:05:33 1942
转载 OpenCV iOS - Image Processing
GoalIn this tutorial we will learn how to do basic image processing using OpenCV in iOS.IntroductionIn OpenCV all the image processing operations are usually carried out on theMat structur
2013-11-21 17:04:24 2648
转载 OpenCV iOS Hello world
GoalIn this tutorial we will learn how to:Link OpenCV framework with XcodeHow to write simple Hello World application using OpenCV and Xcode.Linking OpenCV iOSFollow this step by ste
2013-11-21 17:02:19 1448
转载 How To: Compile and Use Tesseract (3.01) on iOS (SDK 5)
UpdateI don’t have access to a Mac computer now (actually it has been 3 months) and I couldn’t update the guide to Xcode 4.5 (iOS 6), but the fine gentlemanbengl3rt has done so and the updated s
2013-11-21 16:53:06 1491
转载 Compiling Lua with Visual Studio 2010
Compiling Lua with Visual Studio 2010Lua?Lua is a dynamic, object-oriented, interpreted language. Most programmers are aware of it as the scripting language used in the game World of Warcraft,
2013-11-21 11:39:10 1824
转载 Build Lua on window hit Link error
mekkatorqu (292)So I've been following this tutorialhttp://www.youtube.com/watch?v=X5D_h2X8LCk , however Im getting errors about thaat my lib is not linked, however, IT IS, I have included both in
2013-11-21 11:22:22 1625
转载 Lua源码阅读一——在Windows下编译
最近感觉没啥可看,就看一下lua源码,打发打发时间吧。首先需要下载编译lua源码了,笔者是在Windows+VS2005下编译通过 1.首先需要去官方网站上下载lua源码,到www.lua.org上下载lua源码,目前最新版本是5.1 RC4版本lua-5.1.4.tar.gz,解压之后,目录下有install文件,在该文件中详细说明了在linux下编译的过程,visual studi
2013-11-21 10:12:12 975
原创 Chapter1 Lua 中的转义字符 and get start with Lua ,Types and Value
搞了这么多年programe, \n \t ,\\ \' \"" 就知道其转义,但\ddd \xhh 其实一直没搞明白,直到今天细细的读 programming in Lua 3rd englist version , I just get the meaningpint("a"); , can als be write in print("\97"); or print("\x61");
2013-11-20 19:02:15 3988
翻译 CHAPTER 2 Implementing Controllers and Views
2.1 Displaying Alerts with UIAlertViewThe best way to initialize an alert view is, of course, by using its designated initializer:UIAlertView *alertView = [[UIAlertView alloc]initWithTitle:@"Tit
2013-11-20 14:39:06 930
转载 ios开发愤怒的小鸟的Lua语言:Wax框架详解(二)
核心提示:本文为《开发愤怒的小鸟的Lua语言:Wax框架详解》第二部分,将逐步介绍如何用Wax构建一个简单的应用程序,显示Twitter上的当前趋势话题列表,可以用按钮来更新内容。 在《开发愤怒的小鸟的Lua语言:Wax框架详解》中介绍了Wax及其优点。在本文中我们首先为大家准备了Wax框架的下载包,您可以把Wax下载下来,与我们一起完成用Wax构建一个简单的应用程序的过程。
2013-11-20 10:15:20 929
转载 ios开发愤怒的小鸟的Lua语言:Wax框架详解(一)
核心提示:我们都知道Objective-C和Cocoa语言可以开发iOS应用,但是一年前,苹果决定在iOS系统上使用Lua语言。Wax框架的想法很简单:凡是Objective-C能做的,Lua也能做! 2011年6月的编程语言排行榜Lua语言一军突起,一举进入前十名。这与一年前苹果决定在iOS系统上使用Lua语言密不可分。但是,你了解如何用Lua语言在iOS上
2013-11-20 10:14:26 1985
转载 用Lua编写iOS程序
原文:http://luanova.org/ioswithlua/ 本文讨论用Lua创建iOS应用的3种方法。包括用Lua创建完整的应用(Corona)一直到用Lua作为app中的脚本元素(通过Wax或diy)。在此之前,我们需要问自己两个问题:1、为什么要使用Lua?2、苹果允许使用Lua吗?这两个问题是紧密相关的。如果你在此之前对Lua一无所知,我会简单介绍一下Lu
2013-11-20 10:11:43 902
翻译 chapter1 The Basic
1.Object-c do not support multple inheritance. objects that inherit from NSObject directly or indirectly can take advantage of Object-C's distinctive memory managment tool.2.Xcode various build type
2013-11-19 17:56:27 1349
转载 Objective-C Feature Availability Index
Objective-C Feature Availability IndexThis article correlates features of the Objective-C language with the versions of Xcode and compiler you need to use them, and the OS versions you can use them
2013-11-18 21:16:13 834
转载 Improved logging in Objective-C
Improved logging in Objective-CQ: How can I add context information - such as the current method or line number - to my logging statements?A: The C preprocessor provides a number of standard macro
2013-11-18 17:31:07 1122
原创 C++ 回忆录11 Template
1.Generic programing reliese on a form of polymorphism,the polymorphism in OOP appliese at run time to classes releate by inheritance. we can write code that use such class in ways that ignore the typ
2013-11-18 17:23:20 1568
原创 C++ std lib study1
1.the new C++ 11 features.This books covers C++11, which long had the working title “C++0x,” with the expectation that it would be done no later than 2009.1C++11 , C++0x , the same meanings.
2013-11-18 17:22:27 1217
转载 Unity官网赛车教程第二部分—调整赛车
在Unity中创建一个赛车游戏第二部分:调整赛车完成了教程的上一步之后,赛车已经有了不错的效果。但在赛道跑上几圈,我们明显的感觉到赛车不太完美,仍需改进。现在我们开始优化,当我们开发游戏时,好的优化将会使我们的游戏更加有趣,具有挑战性,更加完美,除此以外,还能达到我们的其他目标。具体来说,当我们初步完成游戏并开始测试时,多多少少有些地方不尽如人意。比如说我们希望使赛车的
2013-11-17 11:11:42 6446
转载 Unity赛车教程第三部分
第三部分:Underthe Hood(内部脚本) 我们已经介绍了如何从一个三维模型,脚本和内置组件来组装一辆运行的车。我们也了解了可见的变量,以及它们可以怎样来调整汽车的行为。现在是时候我们来更深入的了解汽车引擎内部的精密机械 ——汽车的脚本。 双击Car.js脚本,你的代码编译器会打开它。 咋一看这个脚本超过500行的代码和注释以及非常多的变
2013-11-17 11:10:14 10080 2
原创 CSS summary
CSS 总结1.当同一个 HTML 元素被不止一个样式定义时,会使用哪个样式呢?一般而言,所有的样式会根据下面的规则层叠于一个新的虚拟样式表中,其中数字 4 拥有最高的优先权。 浏览器缺省设置 外部样式表 内部样式表(位于 标签内部) 内联样式(在 HTML 元素内部)因此,内联样式(在 HTML 元素内部)拥有最高的优先权,这意味
2013-11-15 16:14:17 975
转载 函数调用方式--__thiscall调用方式和__cdecl,__stdcall有什么区别
函数调用方式--__thiscall调用方式和__cdecl,__stdcall有什么区别首先,__thiscall是关于类的一种调用方式,它与其他调用方式的最大区别是: __thiscall对每个函数都增加了一个类指针参数class aa { void bb(int cc); }; 实际上bb的函数原形是void bb(aa &
2013-11-01 17:57:46 625
转载 jsf基础使用方法
1。在新建的工程中添加jsf框架,将自动生成一web.xml文件。内容如下:http://java.sun.com/xml/ns/j2ee"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"version="2.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http:/
2013-11-01 10:50:17 1309
转载 JSF标签的使用2
总结: n 事件监听器是用于解决只影响用户界面的事件Ø 特别地,在beans的form数据被加载和触发验证前被调用• 用immediate=“true”指明这个行为不触发验证Ø 在监听器调用后,会重新显示表单• 不应用导航规则,不重定向页面n ActionListener Ø 隶属于按钮、超链接和图形映射控件Ø 自动提交对应表单n
2013-11-01 10:48:59 682
转载 JSF标签的使用1
#{…} 表达式的三种含义n 指定输出值 Ø #{ varName.propertyName } 含义为输出特定范围域变量或托管bean的指定属性 Ø 任何时候访问都是一个输出的文本Ø 当表单初始显示时,代表一个预装配的值n 指定提交值 Ø h: inputText value="#{ employ
2013-11-01 10:48:24 659
转载 JSF 一些经验
我目前的项目前端使用的是jsf+seam的架构,目前项目已经进入尾声,我想把一些心得体会给大家说说,以便大家在使用jsf的时候,少走弯路。1.异常处理问题:请为jsf加入seam框架,看看Seam - 无缝集成JSF,共三部分,里面告诉了你怎么在servlet容器下配合spring使用seam,seam不是一定要在ejb3和jboss下才可以使用。因为单独使用jsf的话她的异常处理功能很简陋,
2013-11-01 10:47:36 2181
学校教材订购系统(代码+文档)
2021-03-24
jira 管理员必看管理员手册最详细最全
2021-03-21
C语言考研试题和历年考试题
2021-03-20
NPOI动态库(dll)打包下载,已验证
2021-03-19
java做的个人财务管理系统
2021-03-18
FlyppyBird 源码
2021-03-07
MSP430F149利用硬件SPI口读写串行Flash M25P64
2021-03-05
指纹图像预处理及特征点提取(MATLAB)
2021-03-03
车牌检测数据集
2021-03-01
基于UDP协议的聊天程序 MFC环境下的
2021-02-26
多用户远程访问Access数据库--通讯录示例(VB+ASP+ACCE)
2021-02-24
boost threadpool(修复内存泄露后的版本)
2021-02-23
语义分析(c)源代码
2021-02-21
使用JSP、JavaBean和Servlet完成一个简单的留言板设计(包含完整源代码+数据库+程序截图+中文显示数据)
2021-02-14
jpcap各种文档
2021-02-13
HP LaserJet Professional M1130-M1210 MFP Series
2021-02-10
lenna.bmp 图像处理 经典图片 bmp lenna图 彩色 256*256 192kb
2021-02-09
Multisim仿真实例(200个电路仿真文件)
2021-02-02
u-boot for tiny210
2021-01-30
如何使用FULLBNT工具箱(中文)
2021-01-21
操作系统课程设计多道批处理系统两级调度的模拟
2021-01-19
sqlite3数据库 ODBC连接驱动
2021-01-18
VB连接MySQL实例
2021-01-16
Microsoft Date and Time Picker Control,version 6.0 控件
2021-01-15
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人