码迷,mamicode.com
首页 >  
搜索关键字:confusion matrix    ( 4333个结果
Unity3d shader之SWAP Force Depth-of-Field Shader
由于博主常年逃课,所以期末考试期间只能突击,但偶尔还能拿个奖学金啥的,哈哈,所以近一个月没有做游戏,也没有发博客= =。。。这个景深的方法很简单 我们需要求的是CoC(circle of confusion)模糊圈CoC与R相关 主要原理如下图所示alpha是透镜的半径 zf为焦点,z为物距 要求R...
分类:编程语言   时间:2015-12-21 08:09:42    阅读次数:216
C++小tips
1.关于强制转化的问题:已经 int**Matrix;强制类型转换时为了防止出现意外,编译器不同要求也不同一般编译器会自动转化了也可以加上Matrix=(int**) new int*[];2.new的另一个问题只有是指针才需要new ,因为系统不知道要开辟多大的空间如果不是指针,比如 int to...
分类:编程语言   时间:2015-12-20 18:54:29    阅读次数:138
Leetcode: Search a 2D Matrix II
Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:Integers in each row are sorted in...
分类:其他好文   时间:2015-12-20 13:08:34    阅读次数:142
311. Sparse Matrix Multiplication
题目:Given twosparse matricesAandB, return the result ofAB.You may assume thatA's column number is equal toB's row number.Example:A = [ [ 1, 0, 0], [-.....
分类:其他好文   时间:2015-12-20 13:02:37    阅读次数:142
Leetcode: Maximal Square
Given a 2D binary matrix filled with 0's and 1's, find the largest square containing all 1's and return its area.For example, given the following matr...
分类:其他好文   时间:2015-12-19 01:26:02    阅读次数:200
AndroidClipSquare安卓实现方形头像裁剪
安卓实现方形头像裁剪实现思路。界面可见区域为2层View最顶层的View是显示层,主要绘制半透明边框区域和白色裁剪区域,代码比較easy。第二层继承ImageView,使用ImageView的Matrix实现显示部分图片,及挪动,放大缩小等操作。比較复杂的地方在于多指操作对ImageView的影响,...
分类:移动开发   时间:2015-12-18 20:35:03    阅读次数:190
ImageView的scaletype属性
ImageView的Scaletype属性决定了图片在View上进行何种比例的缩放。 属性值包括:matrix(默认),center , centerCrop , centerInside , fitStart , fitCenter , fitEnd , fitXY. 1.center ...
分类:其他好文   时间:2015-12-18 18:22:27    阅读次数:148
Swift----方法 、 下标 、 继承 、 初始化 、 析构方法 、 可选链
1 下标的使用1.1 问题下标可以定义在类、结构体和枚举中,可以认为是访问对象、集合或序列的快捷方式,不需要再调用实例的特定的赋值和访问方法。本案例定义一个Matrix结构体,用于呈现一个Double类型的二维矩阵,其结构体内部使用一个一维数组保存数据,并且定义一个下标用于判断是否会造成数组越界。1...
分类:编程语言   时间:2015-12-16 21:26:49    阅读次数:387
1.6---旋转二维数组,旋转图像像素,旋转矩阵,90度(CC150)
import java.util.*; public class Transform { public int[][] transformImage(int[][] matrix, int n) { // write code here n = matrix....
分类:编程语言   时间:2015-12-16 18:52:38    阅读次数:201
理解CSS3 transform中的Matrix(矩阵)
理解CSS3 transform中的Matrix(矩阵)byzhangxinxufromhttp://www.zhangxinxu.com本文地址:http://www.zhangxinxu.com/wordpress/?p=2427一、哥,我被你吓住了打架的时候会被块头大的吓住,学习的时候会被奇怪...
分类:Web程序   时间:2015-12-16 15:31:02    阅读次数:404
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!