How to solve error "Error using bwmorph"
이전 댓글 표시
I want to doing a feature extraction steps for multiple images, i have this function:
% this function is supposed to extract features from the input image
function [features]=feature_extraction(I)
if length(size(I))>2 % checking if rgb image;
I=im2bw(I,graythresh(I));
end
I=bwmorph(I,'skel',inf);
I=discourser(I);
row=size(I,1);
column=size(I,2); ... and so on.
And I call it in another script.
files = dir('*.png');
for i = 1:numel(files)
I = files(i).name;
[getfeature] = feature_extraction(I);
end
댓글 수: 5
Walter Roberson
2015년 8월 4일
You omitted the error message.
Walter Roberson
2015년 8월 4일
Yes, to be expected when you pass in the name of the file instead of the content of the file.
ana ain
2015년 8월 6일
Walter Roberson
2015년 8월 6일
I understand that. What I'm saying is that if you put the responses into into a file and then run
myexe.exe < c:\temp\inputs.txt
in the command shell and then, assuming that works,
system('myexe.exe < c:\temp\inputs.txt')
does it work?
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Morphological Operations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!