Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to apply wavelet Transform to images files in Matlab?

Status
Not open for further replies.

a1111ba

Newbie level 1
Joined
Jun 7, 2011
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,288
please anyone can help me to correct error on this code bellow , I applied same code for audio. hint : there are multi images in folder "text"
thanks

files = dir('C:\Program Files\MATLAB\R2008a\work\test\*.JPEG');
for k = 1:numel(files)
rgb = imread(files(k).name);
y=rgb2gray(rgb);
[a,b,c,d]=dwt2(y,'db1');
[a1,b1,c1,d1]=dwt2(a,'db1');
[a2,b2,c2,d2]=dwt2(a1,'db1');
[a3,b3,c3,d3]=dwt2(a2,'db1');
fid = fopen('dbJPEG', 'w');
fwrite(fid, a3,'single')
end
fclose(fid)
fid = fopen('dbJPEG', 'r');
x=fread(fid,'single');
fclose(fid)
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top