A=imread('e:\1\1.tif');%读入图片“1.tif”B=rgb2gray(A);%将图像转换成灰度图像subplot(121);imshow(A);%显示原图像title('原图像');%命名subplot(122)imshow(B);%显示转换后的灰度图像title('转化后的灰...
分类:
其他好文 时间:
2014-12-03 20:49:46
阅读次数:
339
module cordic_core( input wire clk, input wire reset_n, output wire ready_out, input wire [19:0] PosX_in, /...
分类:
编程语言 时间:
2014-10-17 15:21:35
阅读次数:
263
1、将图片转换成二进制流public byte[] getBitmapByte(Bitmap bitmap){ ByteArrayOutputStream out = new ByteArrayOutputStream(); //参数1转换类型,参数2压缩质量,参数3字节流资源 ...
分类:
移动开发 时间:
2014-09-19 18:56:35
阅读次数:
197
对所有图像配准技术最根本的问题是找到适当的图像转换或者映射类型以正确匹配两幅图像。常见的配准转换包括:缸体变化、仿射变换、投影变换、非线性变化。...
分类:
其他好文 时间:
2014-09-18 11:37:53
阅读次数:
198
在用opencv处理图片显示在qt label上的时候遇到不是问题
1. qt上要用qimage形式才能显示
IplImage转成 Qimage
彩色图像转换
IplImage *fram;
QImage image((const uchar*)fram->imageData, fram->width, fram->height, QImage::Format_RGB888);
...
分类:
其他好文 时间:
2014-09-18 11:32:30
阅读次数:
184
1、将索引图像为RGB图像[X,map]=imread('spine.tif');figure;subplot(121);imshow(X,hot(64));rgb=ind2rgb(X,map);subplot(122);imshow(rgb);2、将矩阵转换为灰度图像>> I=[1 2 3;4 5...
分类:
其他好文 时间:
2014-09-07 18:30:05
阅读次数:
229
@Override
public?void?onClick(View?v)?{
// if?(mBitmap?==?null)?{
// mBitmap?=?Bitmap.createBitmap(mCharView.getMeasuredWidth(),?mCharView.getMeasuredHeight(),?Bitmap.Config.ARGB_88...
分类:
其他好文 时间:
2014-08-22 14:39:59
阅读次数:
238
运用VS2008及GDI,将多幅不同格式的图像合成GIF动画,主要涉及图像转换与gif生成两个方面。
分类:
其他好文 时间:
2014-07-19 21:36:01
阅读次数:
299
2014-07-17第四章 细说HighGUI练习题第1题题目大致要求:a:(1)从视频文件读入数据,(2)转换为灰度图,(3)做Canny边缘检测,显示在三个窗口b:将a的三个视频显示在一个窗口中c:在b步骤的不同部分写上合适的文字标签代码: 1 #include "stdafx.h" 2 #.....
分类:
其他好文 时间:
2014-07-19 17:02:22
阅读次数:
245
为了加快处理速度在图像处理算法中,往往需要把彩色图像转换为灰度图像。24为彩色图像每个像素用3个字节表示,每个字节对应着RGB分量的亮度。当RGB分量值不同时,表现为彩色图像;当RGB分量相同时,变现为灰度图像:一般来说,转换公式有3中。(1)Gray(i,j)=[R(i,j)+G(i,j)+B(i...
分类:
其他好文 时间:
2014-07-03 10:54:07
阅读次数:
270