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.

help in matlab read 100 image,resize 100 image, and store

Status
Not open for further replies.

intelnside

Member level 2
Member level 2
Joined
Jun 6, 2006
Messages
42
Helped
4
Reputation
8
Reaction score
1
Trophy points
1,288
Activity points
1,580
matlab image resize

any1 know the code of read 100 image in a time, and also resize it without repeating the same code ??

this is my code

clear all; close all
%source = 'C:\Users\Ruey Cherng\Documents\Turkey Bone image and wiener filter code/';
destination = 'd:/';

A = imread('C:\Users\Ruey Cherng\Documents\Turkey Bone image and wiener filter code\image\2.1.bmp');
B = imread('C:\Users\Ruey Cherng\Documents\Turkey Bone image and wiener filter code\image\2.2.bmp');
C = imread('C:\Users\Ruey Cherng\Documents\Turkey Bone image and wiener filter code\image\2.3.bmp');
D = imread('C:\Users\Ruey Cherng\Documents\Turkey Bone image and wiener filter code\image\2.4.bmp');
E = imread('C:\Users\Ruey Cherng\Documents\Turkey Bone image and wiener filter code\image\2.5.bmp');
F = imread('C:\Users\Ruey Cherng\Documents\Turkey Bone image and wiener filter code\image\2.6.bmp');
G = imread('C:\Users\Ruey Cherng\Documents\Turkey Bone image and wiener filter code\image\2.7.bmp');
H = imread('C:\Users\Ruey Cherng\Documents\Turkey Bone image and wiener filter code\image\2.8.bmp');

A1 = imresize(A, [512 512]);
B1 = imresize(B, [512 512]);
C1 = imresize(C, [512 512]);
D1 = imresize(D, [512 512]);
E1 = imresize(E, [512 512]);
F1 = imresize(F, [512 512]);
G1 = imresize(G, [512 512]);
H1 = imresize(H, [512 512]);


name =strcat(num2str(I),'_filtered.bmp');
name= strcat(destination,name);
imwrite (A1,name,'bmp')
disp(sprintf('Denoised image stored in %s\n',name));

but the problem is i don't want to repeat the same which is wasting the space.
 

image resize in matlab free code

Hey is it possible to have 100 images in memory,
you got to read a set of images that your memory can hold,
resize them,then store them.
have to repeat this operations until you finish with all of the images.
I don't think you would be able to read all of the images at the same time...
 

matlab repeat imread

i have wrote some code , i would able to store the image in a big array but i cant call out the image to resize it, would u able to help me?

clear all;close all

source = 'F:\;
destination = 'd:/';
number =8;

for I = 1:number,
name =strcat(num2str(I),'.bmp');
name = strcat(source,name);
disp(sprintf('Reading Image %s ...',name));
image= imread(name);
[csx csy]=size(image);

for j=1:csx,
for k=1:csy,
coeffimage(j,k,I)=image(j,k);
end
end
end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
this below code is call out the image that i stored and resize it, but i got problem, so could you help me to fix it?
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
for I = 1:number,
for j = 1:csx,
for k = 1:csy,
if (j==csx)&&(k==csy)&&(I==1)
IR1=imresize(coeffimage(j,k,I),[512 512]);
end
end
end
 
  • Like
Reactions: othoi

    othoi

    Points: 2
    Helpful Answer Positive Rating
i have faced some problem of this code how can i solve it?
 
  • Like
Reactions: acaz

    acaz

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top