Please help to remove the error in the code

Hello everyone, I am trying to detect copy move image forgery using SIFT in digital images.But am stuck at some point due to some errors like the following one:-
>> run_F220_experiment
Processing: dataset\MICC-F220\CRW_4853tamp1.jpg (1/220)
The system cannot find the path specified.
Error using match_features (line 53)
error calling executables
Error in process_image (line 52)
[num p1 p2 tp] = match_features(imagefile, siftfile);
Error in run_F220_experiment (line 35)
countTrasfGeom = process_image(loc_file, metric, th, min_pts, 0);
Please help me to resolve this error, so that the attached code can detect copy move forgery in mage dataset.
P.S. - Code is attached. plz mail at er.harpreetkaur26 @ gmail.com Thanks in advance:)

 채택된 답변

Jan
Jan 2015년 4월 30일

0 개 추천

The system cannot find the path specified
This means that the software tries to access a not existing file. It is impossible for the readers to guess, why this happens. Please notice, that the message does not contain any attached code.
The forum is though to be a forum, such that all readers can benefit from the solutions. In consequence it is not wanted, that solutions are provided by email, because this would be counter-productive.

추가 답변 (3개)

Image Analyst
Image Analyst 2015년 4월 30일

1 개 추천

Check your filename. Perhaps there is a slash missing or a mistyped character, or a drive letter missing or something like that.
filename = 'dataset\MICC-F220\CRW_4853tamp1.jpg';
if ~exist(filename, 'file')
warningMessage = sprintf('Error: file not found:\n %s\n', filename);
uiwait(warndlg(warningMessage));
end
harpreet
harpreet 2015년 4월 30일

0 개 추천

Thanks image analyst and jan simon, that problem is resolved now.

댓글 수: 3

How you resolved the problem ?
Probably by specifying the full path, starting with the drive letter.
OK, How will i specify the same using fullfile in matlab? Somethinf like this - fullfile('B:\','Matlab R2017','bin','sift-open-master','lib','sift','bin','siftfeat');

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

harpreet
harpreet 2015년 4월 30일

0 개 추천

please sugest any solution to this error...
Error using textread (line 166) File not found.
Error in run_F220_experiment (line 16) [ImageName, GT] = textread(fullfile(db_dir,DB,file_ground_truth), '%s %d');
p.s-textread is a sub function in my code.

질문:

2015년 4월 30일

댓글:

2018년 5월 5일

Community Treasure Hunt

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

Start Hunting!

Translated by