필터 지우기
필터 지우기

How to save the enhanced fingerprint images

조회 수: 6 (최근 30일)
uma
uma 2020년 5월 5일
댓글: Walter Roberson 2020년 5월 16일
please do help i have enhanced the fingerprint images and now i want to save them for matching how i can do this.
  댓글 수: 1
Johannes Rebling
Johannes Rebling 2020년 5월 5일
First you can do this by providing a meaningful minimal example.

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

채택된 답변

Cam Salzberger
Cam Salzberger 2020년 5월 5일
If you have the image as a matrix, use imwrite. If you have "enhanced" the image by using figure tools (axes, plotting, etc.), use print.
-Cam
  댓글 수: 6
uma
uma 2020년 5월 15일
Is there any other option to save these images in a folder?
Walter Roberson
Walter Roberson 2020년 5월 16일
No, there is no other way to save the images in a folder. No matter which folder you make your current folder, and no matter whether you use a relative path or a complete path, you still end up using imwrite() or equivalent, and you still risk being denied write access.
You need to figure out why it is not permitting you to save in that location.
I have to wonder why you have matlab\myfiles\matlab\myfiles in your path instead of just matlab\myfiles
create_missing = false;
parts = {'C:\', 'Users', 'Dell', 'Desktop', 'python tutorials', 'matlab', 'myfiles', 'matlab', 'myfiles', 'Dataset 2', 'Enhanced images'};
if ~exist(parts{1}, 'dir')
error('You do not have a C: drive. Giving up.');
end
failed = false;
for K = 2 : length(parts)
thispath = fullfile(parts{1:K});
if exist(thispath, 'dir')
fprintf('Okay we already have directory %s\n', thispath);
elseif create_missing
try
mkdir(thispath);
fprintf('Was able to create missing directory %s\n', thispath);
catch
fprintf('Failed trying to create missing directory %s', thispath);
oldpath = fullfile(parts{1:K-1});
p = fileattrib(oldpath);
fprintf('Attributes of parent directory %s are:\n', oldpath);
disp(p);
failed = true;
break
end
else
fprintf('Directory %s does not exist and you asked that missing directories not be created. Set the variable create_missing to true if you want the directory created\n', thispath);
failed = true;
break
end
end
if failed
fprintf('Some directory not created. Not ready to use\n');
else
fprintf('Okay, should be ready to use directory %s\n', fullfile(parts{:}) );
end

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

추가 답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by