Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - imwrite
Search - imwrite - List

% Matlab implementation of SPIHT (without Arithmatic coding stage)
%
% By Jing Tian, scuteejtian@hotmail.com

fprintf('-----------   Welcome to SPIHT Matlab Demo!   ----------------\n');

fprintf('-----------   Load Image   ----------------\n');
infilename = 'lena512.bmp';
outfilename = 'lena512_reconstruct.bmp';

Orig_I = double(imread(infilename));

rate = 1;

OrigSize = size(Orig_I, 1);
max_bits = floor(rate * OrigSize^2);
OutSize = OrigSize;
image_spiht = zeros(size(Orig_I));
[nRow, nColumn] = size(Orig_I);

fprintf('done!\n');
fprintf('-----------   Wavelet Decomposition   ----------------\n');
n = size(Orig_I,1);
n_log = log2(n);
level = n_log;
% wavelet decomposition level can be defined by users manually.
type = 'bior4.4';
[Lo_D,Hi_D,Lo_R,Hi_R] = wfilters(type);

[I_W, S] = func_DWT(Orig_I, level, Lo_D, Hi_D);

fprintf('done!\n');

fprintf('-----------   Encoding   ----------------\n');
img_enc = func_SPIHT_Enc(I_W, max_bits, nRow*nColumn, level);  

fprintf('done!\n');
fprintf('-----------   Decoding   ----------------\n');
img_dec = func_SPIHT_Dec(img_enc);

fprintf('done!\n');
fprintf('-----------   Wavelet Reconstruction   ----------------\n');
img_spiht = func_InvDWT(img_dec, S, Lo_R, Hi_R, level);

fprintf('done!\n');
fprintf('-----------   PSNR analysis   ----------------\n');

imwrite(img_spiht, gray(256), outfilename, 'bmp');

Q = 255;
MSE = sum(sum((img_spiht-Orig_I).^2))/nRow / nColumn;
fprintf('The psnr performance is %.2f dB\n', 10*log10(Q*Q/MSE));


Update : 2008-07-07 Size : 227.42kb Publisher : jasonchang

这两天着迷goolge earth抓图,编写了一个拼图的程序,主要是用到了imread imwrite和对话框几个知识点,很简单的。
Update : 2008-10-13 Size : 1.17kb Publisher : jerry

DL : 0
实验目的 本次实验与书中第二章及3.2节的部分内容有关,包括以下几个部分: (1)开始使用MATLAB (2)显示图像,理解图像的模型 (3)使用图像的不同格式,理解图像压缩的意义 (4)对图像做简单的操作 本次实验需要熟练使用以下几个MATLAB命令: imread, imwrite, imshow,figure
Update : 2008-10-13 Size : 1.64kb Publisher : Victor

实验目的: 1) 图像水平集合 2) 图像加密算法 3) 边缘提取 4) 噪音图像的产生 (2)显示图像,理解图像的模型 (3)使用图像的不同格式,理解图像压缩的意义 (4)对图像做简单的操作 本次实验需要熟练使用以下几个MATLAB命令: imread, imwrite, imshow,figure
Update : 2008-10-13 Size : 6.26kb Publisher : Victor

DL : 0
这两天着迷goolge earth抓图,编写了一个拼图的程序,主要是用到了imread imwrite和对话框几个知识点,很简单的。-This two-day fascination with goolge earth drawings, prepared a puzzle procedures, mainly used in the dialog box imread imwrite and several knowledge points, very simple.
Update : 2025-02-19 Size : 1kb Publisher : jerry

DL : 0
实验目的 本次实验与书中第二章及3.2节的部分内容有关,包括以下几个部分: (1)开始使用MATLAB (2)显示图像,理解图像的模型 (3)使用图像的不同格式,理解图像压缩的意义 (4)对图像做简单的操作 本次实验需要熟练使用以下几个MATLAB命令: imread, imwrite, imshow,figure -Experimental purposes of this experiment with the book, chapter and part of the contents of 3.2, including the following sections: (1) start using MATLAB (2) show the images, understanding image model (3) the use of images in different formats, understand the significance of image compression (4) on the image to do a simple experiment needs to operate the skilled use of the following MATLAB command: imread, imwrite, imshow, figure
Update : 2025-02-19 Size : 1kb Publisher : Victor

实验目的: 1) 图像水平集合 2) 图像加密算法 3) 边缘提取 4) 噪音图像的产生 (2)显示图像,理解图像的模型 (3)使用图像的不同格式,理解图像压缩的意义 (4)对图像做简单的操作 本次实验需要熟练使用以下几个MATLAB命令: imread, imwrite, imshow,figure -Experimental purposes: 1) the level of collection of image 2) image encryption algorithm 3) Edge 4) noise generated images (2) display images, understanding image model (3) the use of images in different formats, understanding the significance of image compression (4) image to do a simple experiment needs to operate the skilled use of the following MATLAB command: imread, imwrite, imshow, figure
Update : 2025-02-19 Size : 6kb Publisher : Victor

在MFC中如何应用OPENCV。将OPENCV与MFC结合起来使用。-At MFC in the application of OPENCV
Update : 2025-02-19 Size : 40kb Publisher : 夏洁

DL : 0
M=512 原图像长度 N=64 K=8 I=zeros(M,M) J=zeros(N,N) BLOCK=zeros(K,K) 显示原图像 I=imread( f:\ceshi\yuanshitu.bmp ) figure imshow(I) xlabel( 原始图像 ) 显示水印图像 J=imread( f:\ceshi\logistic_nuaa64.bmp ) figure imshow(J) xlabel( 水印图像 ) 嵌入水印 tem=1 for p=1:N for q=1:N x=(p-1)*K+1 y=(q-1)*K+1 BLOCK=I(x:x+K-1,y:y+K-1) BLOCK=dct2(BLOCK) if J(p,q)==0 a=-1 else a=1 end BLOCK(2,1)=BLOCK(2,1)*(1+a*0.01) BLOCK=idct2(BLOCK) I(x:x+K-1,y:y+K-1)=BLOCK end end 显示嵌入水印后的图像 figure imshow(I) xlabel( 嵌入水印后的图像 ) imwrite(I, f:\ceshi\embedded.bmp )-M=512 原图像长度 N=64 K=8 I=zeros(M,M) J=zeros(N,N) BLOCK=zeros(K,K) 显示原图像 I=imread( f:\ceshi\yuanshitu.bmp ) figure imshow(I) xlabel( 原始图像 ) 显示水印图像 J=imread( f:\ceshi\logistic_nuaa64.bmp ) figure imshow(J) xlabel( 水印图像 ) 嵌入水印 tem=1 for p=1:N for q=1:N x=(p-1)*K+1 y=(q-1)*K+1 BLOCK=I(x:x+K-1,y:y+K-1) BLOCK=dct2(BLOCK) if J(p,q)==0 a=-1 else a=1 end BLOCK(2,1)=BLOCK(2,1)*(1+a*0.01) BLOCK=idct2(BLOCK) I(x:x+K-1,y:y+K-1)=BLOCK end end 显示嵌入水印后的图像 figure imshow(I) xlabel( 嵌入水印后的图像 ) imwrite(I, f:\ceshi\embedded.bmp )
Update : 2025-02-19 Size : 1kb Publisher : 123096321

MATLAB图像基本操作命令:imread, imwrite, imshow,figure-MATLAB Image basic operations command:imread, imwrite, imshow,figure
Update : 2025-02-19 Size : 335kb Publisher : mmm

u can calculate DCT clc inp = imread( Im1.jpg ) inp1 = imread( Im2.jpg ) A = double(inp(:,:,1)) B = double(inp1(:,:,1)) A1=double(blkproc(A,[8 8], dct2 )) B1=double(blkproc(B,[8 8], dct2 )) [r,c] = size(A1) r1 = [] for i=1:r for j=1:c if A1(i,j) > B1(i,j) r1(i,j)=A1(i,j) else r1(i,j)=B1(i,j) end end end r1= double(r1(:,:,1)) C=blkproc(r1,[8 8], idct2 ) round(C) C1=idct2(r1) figure imshow(uint8(C)) figure imshow(uint8(C1)) imwrite(uint8(C), dct8x8min.jpg ) -u can calculate DCT clc inp = imread( Im1.jpg ) inp1 = imread( Im2.jpg ) A = double(inp(:,:,1)) B = double(inp1(:,:,1)) A1=double(blkproc(A,[8 8], dct2 )) B1=double(blkproc(B,[8 8], dct2 )) [r,c] = size(A1) r1 = [] for i=1:r for j=1:c if A1(i,j) > B1(i,j) r1(i,j)=A1(i,j) else r1(i,j)=B1(i,j) end end end r1= double(r1(:,:,1)) C=blkproc(r1,[8 8], idct2 ) round(C) C1=idct2(r1) figure imshow(uint8(C)) figure imshow(uint8(C1)) imwrite(uint8(C), dct8x8min.jpg )
Update : 2025-02-19 Size : 29kb Publisher : parthiban

将视频读入YUV文件,可直接使用,希望对大家有帮助-YUV imwrite
Update : 2025-02-19 Size : 1kb Publisher : szv

DL : 0
a.阅读的图像img_1.tif,img_2.png的文件夹中,并 他们展示于一体,这两个数字分别。 (参考函数:imread, imshow, figure, subplot) b.在matlab,观察从工作区中的图像信息面板 c.分别使用size, imfinfo,whos等功能获得的图像信息 d.添加标题的图像。 (参考函数:title) Ë 。下面的代码实现的M文件编辑器 f=imread(‘img_1.tif’) imshow(f) set(figure(1), NumberTitle , off , Name , my first image’) 观察结果,并确定的功set() f。保存img_1.tif目录“D:\ imagetest”。如果该文件夹不 存在,请首先创建这个新的文件夹。 (参考函数:imwrite) -a. Read the images img_1.tif, img_2.png given in the folder, and show them in one and two figures respectively. (referenced function: imread, imshow, figure, subplot) b. In matlab, observe the images information from the workspace Panel c. Use size, imfinfo,whos,etc functions to obtain image information respectively. d. Add title to the images. (referenced function: title) e. Implement the following codes in the M-file Editor f=imread(‘img_1.tif’) imshow(f) set(figure(1), NumberTitle , off , Name , my first image’) observe the result, and determine the function of set() f. Save img_1.tif to the directory “d:\imagetest”. If the folder does not exist, please create this new folder first. (referenced function: imwrite)
Update : 2025-02-19 Size : 1kb Publisher : 王磊

DL : 0
clc clear all i=imread( Winter.jpg ) i=rgb2gray(i) figure(1) imshow(i) imwrite(i, Copy.jpg ) j=imread( Sunset.jpg ) j=rgb2gray(j) jRect=j(100:200,100:200,:) figure(2) imshow(jRect) for x= 100:200 for y= 100:200 i(x,y,:)=j(x,y,:) end end figure(3) imshow(i) - clc clear all i=imread( Winter.jpg ) i=rgb2gray(i) figure(1) imshow(i) imwrite(i, Copy.jpg ) j=imread( Sunset.jpg ) j=rgb2gray(j) jRect=j(100:200,100:200,:) figure(2) imshow(jRect) for x= 100:200 for y= 100:200 i(x,y,:)=j(x,y,:) end end figure(3) imshow(i)
Update : 2025-02-19 Size : 279kb Publisher : Haven

【谷速软件】matlab源码-保存多个图像 getframe、imwrite、sprintf、num2str-[Valley] matlab source software speed- save multiple images getframe, imwrite, sprintf, num2str
Update : 2025-02-19 Size : 11kb Publisher : 闫凯红

程序描述:利用imwrite函数生成带透明通道的png图像。-Program description: imwrite use png images with transparent channel function generator.
Update : 2025-02-19 Size : 1kb Publisher : 肖斌

Imread: Reads a grayscale or color image graphics file. Imwrite: Writes image to graphics file. Imfinfo: gives information about graphics file. Imshow: displays image. -Imread: Reads a grayscale or color image graphics file. Imwrite: Writes image to graphics file. Imfinfo: gives information about graphics file. Imshow: displays image.
Update : 2025-02-19 Size : 247kb Publisher : stary

提供读写Mat对象到文件中的函数 //Mat读写工具函数,比使用imwrite和imread的优点是:支持OpenCV支持的所有通道和位深。 //缺点是不能作为图像文件直接被其它程序兼容打开,另外不支持压缩-Two functions writing Mat object to file or reading Mat object file.
Update : 2025-02-19 Size : 16kb Publisher : xycheng

利用imwrite生成透明png图像,当作练习用的一个不错的例子-Using imwrite to generate transparent PNG images
Update : 2025-02-19 Size : 1kb Publisher : 严旭

jianche.m 视频追踪主程序,读取视频 先读取监控视频,对每一帧进行救护车识别,保存每一帧处理的结果,运行时候需要修改。 比如:imwrite(uint8(FormerFrame1),strcat('E:\车辆追踪\跟踪\',num2str(k),'.jpg')) 需要自己重新定义文件夹,对每一帧结果进行保存(Jianche.m video tracking main program, read video First read the surveillance video, each frame for ambulance identification, save the results of each frame processing, run-time need to be modified. For example: imwrite (uint8 (FormerFrame1), strcat ('E:\ \ 'vehicle tracking tracking (k), num2str,'.jpg')) You need to redefine the folder yourself and save the results of each frame)
Update : 2025-02-19 Size : 40.57mb Publisher : 长江七号
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.