码迷,mamicode.com
首页 >  
搜索关键字:matrix factorization    ( 4370个结果
一起学android之利用ColorMatrix进行图片的各种特效处理(32)
原图:效果1:效果2: 效果3:效果4: 查看官方的API,其中ColorMatrix的说明如下: 5x4 matrix for transforming the color+alpha components of a Bitmap. The matrix is stored in a single array, and its  treated as fo...
分类:移动开发   时间:2015-04-22 13:52:10    阅读次数:267
POJ 2155 Matrix(树状数组)
Matrix Time Limit: 3000MS   Memory Limit: 65536K Total Submissions: 20138   Accepted: 7522 Description Given an N*N matrix A, whose elements are either 0 or 1. A[i, j] me...
分类:编程语言   时间:2015-04-21 22:53:02    阅读次数:174
【HTML5 Canvas】计算元件/显示对象经过Matrix变换后在上级/舞台上的bounds(边界矩形rect)
如上图所示,这样的一个简单矩形,边界矩形是(x:-28, y:-35, width:152, height:128),这是在这个元件/显示对象自己的坐标空间的范围。那么把这个放到父元件(舞台)中,再做一定变换。如下图所示,白色区域就是舞台,蓝色矩形中的白色十字架标记,就是世界坐标的(0,0)点。 ....
分类:Web程序   时间:2015-04-21 19:57:37    阅读次数:153
Android Camera 实时滤镜(三)
一、基于Android平台基本滤镜算法的实现 1、Android提供了改变图像数值的方法ColorMatrix,通过ColorMatrix方法可以实现基本滤镜,如黑白、灰色、泛黄等效果。   2、通过ColorMatrix改变图像数值,生成变换矩阵,利用矩阵相乘,来改变每个点的像素值。  Matrix => r1 r2 r3 r4...
分类:移动开发   时间:2015-04-21 09:36:10    阅读次数:230
Leetcode12: Search a 2D Matrix
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 from left to right.The first integer of each...
分类:其他好文   时间:2015-04-20 22:48:52    阅读次数:157
Rotate Image
/* 题意:将一个矩阵顺时针旋转90度 解法:画个图,4个一组交换,实际交换只需要交换左上角的一个小矩形matrix[n/2][(n+1)/2];*/class Solution {public: void rotate(vector > &matrix) { int...
分类:其他好文   时间:2015-04-20 22:07:08    阅读次数:167
stack UVA 442 Matrix Chain Multiplication
题目传送门/* stack 容器的应用:矩阵的表达式求值 A 矩阵是a * b,B 矩阵是b * c,则A * B 是a * c*/#include #include #include #include #include #include #include using namespace...
分类:其他好文   时间:2015-04-20 22:05:05    阅读次数:134
IT英语4-其他常用计算机英语2
IT英语4-其他常用计算机英语2AActive-matrix主动距陈Adapter cards适配卡Advanced application高级应用Analytical graph分析图表Analyze分析Animations动画Application software 应用软件Arithmetic...
分类:其他好文   时间:2015-04-20 12:55:54    阅读次数:119
Leetcode: Set Matrix Zeroes
题目: Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place. 提示: Did you use extra space? A straight forward solution using O(mn) space is probably a bad idea....
分类:其他好文   时间:2015-04-19 22:52:07    阅读次数:166
Maximal Rectangle -- leetcode
Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all ones and return its area. 给定一个充满0和1的矩阵,要求出范围全为1的矩阵的面积。 算法一,动态规划 此题,以每行为底,都可以转换成是一个Largest Rec...
分类:其他好文   时间:2015-04-19 14:45:57    阅读次数:115
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!