Processing an query image

조회 수: 3 (최근 30일)
kash
kash 2012년 1월 5일
If the function is as below how i can get query image from hat folder,i am calling all images from that folder ,and have to select 1 query image from same folder,if
for x = 1:length(dirlist)
;
;
end
is inside a function file ,how to call Query image from that folder
function FinalOut = MyFunc(InputPath)
pathname = InputPath;
dirlist = dir( [pathname '*.jpg'] );
...
...
...
...
final_col2{k}=result;
end
save('new','final_col2');
FinalOut = final_col2;
end
Also 'final_col2' should be initialized before starting the loop for efficiency purpose.
final_col2=cell(length(dirlist),1)
  댓글 수: 1
C.J. Harris
C.J. Harris 2012년 1월 5일
Maybe you could team up and work with FIR?
http://www.mathworks.com/matlabcentral/answers/25354-error-in-writing-function-file

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

채택된 답변

Image Analyst
Image Analyst 2012년 1월 5일
Why not call upgetfile() to have the user pick the "Query image"?
  댓글 수: 3
Walter Roberson
Walter Roberson 2012년 1월 5일
I am sure that "upgetfile" is a typo and that "uigetfile" was meant.
Image Analyst
Image Analyst 2012년 1월 5일
Sorry about the typo. So you know uigetfile() - would that solve your problem? Of course you can save lots of things in a variety of different formats. I can't say more unless you say more.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Images에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by