Rank: 2033 based on 27 downloads (last 30 days) and 2 files submitted
photo

Peter Burns

E-mail
Company/University
Digital imaging consultant

Personal Profile:

Matlab user for digital imaging applications

Professional Interests:
image processing, imaging performance evaluation

 

Watch this Author's files

 

Files Posted by Peter View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
22 Jul 2013 run_exiftool Read and write full Exif metadata from image files. A Matlab front end for ExifTool, by Phil Harvey. Author: Peter Burns exif, exiftool, image metadata, image, imaging, data import 22 7
22 Apr 2011 Screenshot uigetimage Simple file selection for images supported by IMREAD. Example of how to tailor UIGETFILE for images Author: Peter Burns image, gui, image processing 5 0
Comments and Ratings by Peter View all
Updated File Comments Rating
22 Jul 2013 run_exiftool Read and write full Exif metadata from image files. A Matlab front end for ExifTool, by Phil Harvey. Author: Peter Burns

Update is posted now.

22 Jul 2013 run_exiftool Read and write full Exif metadata from image files. A Matlab front end for ExifTool, by Phil Harvey. Author: Peter Burns

Note: I have submitted an update. It has not been posted yet.

22 Jul 2013 run_exiftool Read and write full Exif metadata from image files. A Matlab front end for ExifTool, by Phil Harvey. Author: Peter Burns

I have updated the files as suggested by jhh and Jonathan. Thanks.

Also, we can suppress the '1 image files updated', returned by ExifTool to the Command window by adding a second argument, so in putexif.m,
%[status] = system(temp1);
is replaced by,
[status, junk] = system(temp1);
or
[status, ~] = system(temp1);
I have included this in the update.

Comments and Ratings on Peter's Files View all
Updated File Comment by Comments Rating
22 Jul 2013 run_exiftool Read and write full Exif metadata from image files. A Matlab front end for ExifTool, by Phil Harvey. Author: Peter Burns Burns, Peter

Update is posted now.

22 Jul 2013 run_exiftool Read and write full Exif metadata from image files. A Matlab front end for ExifTool, by Phil Harvey. Author: Peter Burns Burns, Peter

Note: I have submitted an update. It has not been posted yet.

22 Jul 2013 run_exiftool Read and write full Exif metadata from image files. A Matlab front end for ExifTool, by Phil Harvey. Author: Peter Burns Burns, Peter

I have updated the files as suggested by jhh and Jonathan. Thanks.

Also, we can suppress the '1 image files updated', returned by ExifTool to the Command window by adding a second argument, so in putexif.m,
%[status] = system(temp1);
is replaced by,
[status, junk] = system(temp1);
or
[status, ~] = system(temp1);
I have included this in the update.

03 Jul 2013 run_exiftool Read and write full Exif metadata from image files. A Matlab front end for ExifTool, by Phil Harvey. Author: Peter Burns Jonathan

Thanks jhh, that did the tick,
For others you can get the second file, putexif.m to work by making the following changes to the else section:

%-----
test = which('exiftool.exe');
[exifdata, nf] = getexif(refname);
% Save data as image file with Matlab metadata
imwrite(dat, fname, 'quality', 100);
[exifdata2, nf2] = getexif(fname);
% Replace matadata from this file with desired tags from reference file
temp1=['"' test '" -m -tagsfromfile "',refname,'" -all:all "', fname, '"'];
status = system(temp1);

% Approximate check
[exifdata3, nf3] = getexif(fname);

% Delete extra copy of reference image file
temp3 = ['del "',fname,'_original"'];
status = system(temp3);

% Test approx. number of tags
if abs(nf3-nf2<10)
disp('Warning: Exif tags may not have been copied');
status = 1;
end
%----

I can't figure out how to suppress the output saying that '1 image files was updated' as I think it is being passed from exiftool.exe

03 Jul 2013 run_exiftool Read and write full Exif metadata from image files. A Matlab front end for ExifTool, by Phil Harvey. Author: Peter Burns jhh

I've got it running now by (1) using 'addpath' to tell Matlab where exiftool can be found and (2) changing the 'else' part of getexif.m as follows:

TS=[ '"' test '" -s "' fname '"']
[status, exifdata]=system(TS);
nf = find(exifdata==':');
nf = length(nf);

But even then, you just get exifdata as a 1xn char array, you you still have to decipher that into meaningfull variables. (I've done so for myself, and it works, but it's not mature enough to post it on FileExchange).

I suppose nf should reurn the number of fields in the exif data, but counting the ':' is not the right way to do it.

Top Tags Applied by Peter
image, data import, exif, exiftool, gui
Files Tagged by Peter View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
22 Jul 2013 run_exiftool Read and write full Exif metadata from image files. A Matlab front end for ExifTool, by Phil Harvey. Author: Peter Burns exif, exiftool, image metadata, image, imaging, data import 22 7
22 Apr 2011 Screenshot uigetimage Simple file selection for images supported by IMREAD. Example of how to tailor UIGETFILE for images Author: Peter Burns image, gui, image processing 5 0

Contact us