필터 지우기
필터 지우기

Reading and showing multiple .png format pictures from a folder

조회 수: 2 (최근 30일)
heyyy i am stuck in reading multiple .png format files from a folder and then i want to show it as well... i am using imread and imshow functions as well but its not working.. any idea? please help soon as i want it urgent :(
  댓글 수: 1
Jan
Jan 2011년 12월 25일
I have removed the "urgent help --->". The term "urgent" does not encourage users to help you.

댓글을 달려면 로그인하십시오.

채택된 답변

Image Analyst
Image Analyst 2011년 12월 25일
Beyond that, if your code doesn't work and the FAQ code doesn't work, you're going to have to post your exact code for us to figure out what is going wrong. Can you view a single one of your images with imread() and imshow() without doing it in a loop?

추가 답변 (1개)

bubble  trouble
bubble trouble 2011년 12월 25일
welll this is my code without loop and now i want to read multiple image files from a folder and perform the same task from line 2 till the showing command (imshow())...
im = imread('exp30096.png');
a=rgb2gray(im);
b=imresize(a,0.4);
c=medfilt2(b,[3 3]);
X=c;
figure; imshow(F);
and the link u posted really sounds helpful will implement it and will let you know ! thank you soooo much!!
[EDITED: Code formatted, Jan Simon]
  댓글 수: 5
Walter Roberson
Walter Roberson 2011년 12월 25일
The code shown here does not define F.
Image Analyst
Image Analyst 2011년 12월 25일
You're right. I just glossed over that and assumed the imshow was showing the intermediate value X. Yep, that would cause the problem, and shows how things can be solved sooner if people would just post the actual error messages.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by