在安卓开发过程中难免会遇到以下几个情况:
1、图片异步加载
2、图片缓存
3、图片显示
4、其它……(忘记了)
以上的这些情况,可能要自己去写不少代码去实现这些功能,而且对于一些新手,可能写了半天,发现效果很不理想、内存问题也处理不好、异步也不好控制(我就是这样)。所以搜了一下,发现网上最流行的一个安卓图片开源框架 universal-image-loader,亲自使用了一下,发现真是的...
分类:
移动开发 时间:
2014-08-29 13:07:27
阅读次数:
224
Gray-level co-occurrence matrix from an image图像的灰度共生矩阵灰度共生矩阵是像素距离和角度的矩阵函数,它通过计算图像中一定距离和一定方向的两点灰度之间的相关性,来反映图像在方向、间隔、变化幅度及快慢上的综合信息。使用方法:glcm = graycomat...
分类:
其他好文 时间:
2014-08-28 21:08:16
阅读次数:
427
参考资料:http://www.centoscn.com/image-text/install/2014/0818/3503.html http://my.oschina.net/jielucky/blog/167405 http://blog.csdn.net/bxc168/ar...
分类:
系统相关 时间:
2014-08-28 21:03:46
阅读次数:
886
RGB 与 (RGB转 YCbCr再转为 RGB)的图像 不可逆,可以从 矩阵的逆运算看出来。 附上 matlab 代码:
clc,clear;
Source=imread('1.jpg');%读入原始RGB图像
figure(1);
subplot(1,2,1);
imshow(Source):title('original image');%显示图像
[r c d]=...
分类:
其他好文 时间:
2014-08-28 19:51:25
阅读次数:
292
MIME消息的头字段 Content-Type Content-Type字段中的内容以“主类型/子类型”的形式出现,主类型有text、image、audio、video、application、multipart、message等,分别表示文本、图片、音频、视频、应用程序、...
分类:
其他好文 时间:
2014-08-28 13:28:09
阅读次数:
155
我们的图片大部分都是可以转换成base64编码的data:image。 这个在将canvas保存为img的时候尤其有用。虽然除ie外,大部分现代浏览器都已经支持原生的基于base64的encode和decode,例如btoa和atob。(将canvas画布保存成img并强制改变mimetype进行下...
分类:
其他好文 时间:
2014-08-28 13:08:19
阅读次数:
270
建议电脑要求 Windows 7, 32 / 64 bit CPU Intel Core i5 / i7 内存 4GB 以上 硬盘 500GB 以上由于虚拟机不支持 Apple Quartz Extreme/Core Image, 需要 Quartz Extreme 的应用软件例如 ...
/* 径向渐变 */div.radial { width: 600px; height: 400px; margin: 30px auto; border: 1px #f00 solid; background-image: -webkit-gradient(radial,50% 50%,0, 50...
分类:
Web程序 时间:
2014-08-28 00:51:18
阅读次数:
1260
You are given an n x n 2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?思路:对于matrix[i][...
分类:
其他好文 时间:
2014-08-27 16:06:57
阅读次数:
179
1.绘制箭头的三种方式
// Drawing code
// CGContextRef con = UIGraphicsGetCurrentContext();
// //draw a black(by default) vertical line,the shaft of the arrow 箭杆
// CGContextMoveToPoint(con, 100, 10...