/*
This program will do the computation
on three channels respectively, and generate
the "cast" effect.
*/
#include "PS_Algorithm.h"
using namespace std;
using namespace cv;
in...
分类:
其他好文 时间:
2014-10-27 19:39:20
阅读次数:
243
three.js 源码注释(八)Math/Matrix3.js
///Matrix3对象的构造函数.用来创建一个3x3矩阵.Matrix3对象的功能函数采用
///定义构造的函数原型对象来实现,实际就是一个数组.
///
/// 用法: var m = new Matrix3(11, 12, 13, 21, 22, 23, 31, 32, 33)
/// 创建一个3x3的矩阵,其实就是一个长度为9的数组,将参数(11, 12, 13, 21, 22, 23, 31, 32, 33)传递给数组用来初始化.
...
分类:
Web程序 时间:
2014-10-27 17:40:40
阅读次数:
280
three.js 源码注释(七)Math/Euler.js
/*
///Euler对象的构造函数.用来创建一个欧拉角的对象.Euler对象的功能函数采用
///定义构造的函数原型对象来实现.
///
/// 用法: var euler = new Euler(5,3,2,'XYZ')
/// 创建一个绕某轴旋转5度,绕y轴旋转某度,绕某轴旋转2度,旋转顺序为'XYZ'.有了旋转顺序才能确定每个x,y,z轴分别旋转多少度.
/// NOTE: 参数x,y,z代表3个轴的旋转角度,具体哪个轴旋转多少度,需要后...
分类:
Web程序 时间:
2014-10-27 14:28:11
阅读次数:
237
keys_.keys(object)
Retrieve all the names of the object's properties.
_.keys({one: 1, two: 2, three: 3});
=> ["one", "two", "three"]
values_.values(object)
Return all of the values of the obje...
如题:datagrid中,见官方文档:formatterfunctionThe cell formatter function, take three parameter:value: the field value.rowData: the row record data.rowIndex: th...
分类:
Web程序 时间:
2014-10-26 00:14:43
阅读次数:
245
Given an arraySofnintegers, find three integers inSsuch that the sum is closest to a given number, target. Return the sum of the three integers. You m...
分类:
其他好文 时间:
2014-10-25 22:53:15
阅读次数:
159
题目:Given an arraySofnintegers, find three integers inSsuch that the sum is closest to a given number, target. Return the sum of the three integers. Yo...
分类:
其他好文 时间:
2014-10-24 12:19:37
阅读次数:
189
Problem Description
The three hands of the clock are rotating every second and meeting each other many times everyday. Finally, they get bored of this and each of them would like to stay away from th...
分类:
其他好文 时间:
2014-10-24 09:17:51
阅读次数:
334
// -Operators can be roughly classified into three categories:// -Unary — Act on single operands// -Binary — Act on two operands// -Ternary — Act on t...
分类:
其他好文 时间:
2014-10-22 21:55:03
阅读次数:
222
It is very easy to install a Spark cluster (Standalone mode). In my example, I used three machines. All machines run a OS of ubuntu 12.04 32bit. One m...
分类:
其他好文 时间:
2014-10-21 17:20:33
阅读次数:
192