Prev: Simulink if loop
Next: PCA for Pattern Recognition
From: tico on 22 Mar 2007 12:57 I want to extract specific information (focal length) from my images through accessing the EXIF in Matlab. I know there's the exifread.m but it gives an error: ??? Error using ==> exifread Filename must be a character array. The Help page for 'exifread' says: IMAGEFILE should be a JPEG or TIFF image file. OUTPUT is a structure containing metadata values about the image or images in IMAGEFILE. This function returns all EXIF tags and does not process them in any way. Why this error? Thanks in advance.
From: Steven Lord on 22 Mar 2007 13:48 "tico" <bastiaan.brak(a)warwick.ac.uk> wrote in message news:ef5143e.-1(a)webcrossing.raydaftYaTP... >I want to extract specific information (focal length) from my images > through accessing the EXIF in Matlab. > I know there's the exifread.m but it gives an error: > > ??? Error using ==> exifread > Filename must be a character array. > > The Help page for 'exifread' says: > > IMAGEFILE should be a JPEG or TIFF image file. OUTPUT is a structure > containing metadata values about the image or images in IMAGEFILE. > This function returns all EXIF tags and does not process them in any > way. > > Why this error? Is the first input in your call to EXIFREAD a character (char) array? If it isn't, you'll receive this error. -- Steve Lord slord(a)mathworks.com
From: Steve Eddins on 22 Mar 2007 13:49 tico wrote: > I want to extract specific information (focal length) from my images > through accessing the EXIF in Matlab. > I know there's the exifread.m but it gives an error: > > ??? Error using ==> exifread > Filename must be a character array. > > The Help page for 'exifread' says: > > IMAGEFILE should be a JPEG or TIFF image file. OUTPUT is a structure > containing metadata values about the image or images in IMAGEFILE. > This function returns all EXIF tags and does not process them in any > way. > > Why this error? The error message says it: you have to pass exifread a string (character array). The string should contain the name of the file. For example: metadata = exifread('myfile.jpg') -- Steve Eddins http://blogs.mathworks.com/steve
From: Tico on 22 Mar 2007 14:10 Steve Eddins wrote: > > > tico wrote: >> I want to extract specific information (focal length) from my > images >> through accessing the EXIF in Matlab. >> I know there's the exifread.m but it gives an error: >> >> ??? Error using ==> exifread >> Filename must be a character array. >> >> The Help page for 'exifread' says: >> >> IMAGEFILE should be a JPEG or TIFF image file. OUTPUT is a > structure >> containing metadata values about the image or images in > IMAGEFILE. >> This function returns all EXIF tags and does not process them in > any >> way. >> >> Why this error? > > The error message says it: you have to pass exifread a string > (character > array). The string should contain the name of the file. > > For example: > > metadata = exifread('myfile.jpg') > > -- > Steve Eddins > <http://blogs.mathworks.com/steve> > Steve and Steve, Thanks, this must have been your easiest reply today! I'm still learning. Tico
|
Pages: 1 Prev: Simulink if loop Next: PCA for Pattern Recognition |