How to get Image information (imtool) - Image description using command prompt function

1 view (last 30 days)
I have developed algorithms which use certain inputs which are available in IMTOOL -> Tools->Image Information -> image description. How can I access this information through coding so that it will generalized and can avoid trouble at user end to provide those info. For instance in image description (attribute) for one of my image which is taken through LEICA microscope - i have the following details
Camera information: Calibration= 0.058 Microns per pixel; Capture format= 1024 x 768, XGA HQ; Gamma= 0.77; Gain= 2.5 x; Exposure= 1.0 s; Auto exposure= Off; Image type= Colour; Shading= Test 1; Sharpening= High; Black clip= 5; White clip= 229;
Microscope information: Nosepiece Objective Mag.= 100; Mag changer magnification= 1; Aperture= 1.25;
Some of these information are being used for processing.

Accepted Answer

Ashish Uthama
Ashish Uthama on 12 Jun 2012
Look at imfinfo.
  2 Comments
Sriram
Sriram on 13 Jun 2012
Ashish ...
I have tried using that and the image description details which i got through IMTOOL are mentioned above and the imfinfo doesn't cover all those
here is the result for IMFINFO
imfinfo('leishman pf gametocyte.jpg')
ans =
Filename: [1x124 char]
FileModDate: '04-Nov-2009 11:37:24'
FileSize: 489712
Format: 'jpg'
FormatVersion: ''
Width: 1024
Height: 768
BitDepth: 24
ColorType: 'truecolor'
FormatSignature: ''
NumberOfSamples: 3
CodingMethod: 'Huffman'
CodingProcess: 'Sequential'
Comment: {[1x28 char]}
BitsPerSample: [8 8 8]
ImageDescription: [1x350 char]
Make: 'Leica Microsystems'
Model: [1x36 char]
XResolution: 1.7188e+007
YResolution: 1.7188e+007
ResolutionUnit: 'Meters'
Software: [1x51 char]
DateTime: '2009-11-04 11:37:22'
Artist: 'pavilion'
HostComputer: 'PAVILION-PC'
DigitalCamera: [1x1 struct]
You can see the information such as calibration / gamma etc are missing which are required for me.
Walter Roberson
Walter Roberson on 17 Jun 2012
You could *try* http://www.mathworks.com/help/techdoc/ref/exifread.html
Gamma does not appear to be on most JPEG tag sets,http://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/JPEG.html
but it is a known EXIF tag, 0xa500
http://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/EXIF.html
Cameras tend to use colorspace response profiles rather than using just one gamma for all spectral frequencies.

Sign in to comment.

More Answers (2)

Sriram
Sriram on 20 Jun 2012
By using function imfinfo ---> image description [1x350 char] {as above} provide the required information..!
'Camera information: Calibration= 0.116 Microns per pixel; Capture format= 1024 x 768, XGA HQ; Gamma= 0.56; Gain= 2.5 x; Exposure= 1.0 s; Auto exposure= Off; Image type= Colour; Shading= Test 1; Sharpening= High; Black clip= 5; White clip= 255; Microscope information: Nosepiece Objective Mag.= 100; Mag changer magnification= 1; Aperture= 1.25; '
thanks for your time guys ...

Image Analyst
Image Analyst on 17 Jun 2012
Does Windows see them? Or another imaging package?

Categories

Find more on Image Processing Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!