Azzera filtri
Azzera filtri

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

2 visualizzazioni (ultimi 30 giorni)
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.

Risposta accettata

Ashish Uthama
Ashish Uthama il 12 Giu 2012
Look at imfinfo.
  2 Commenti
Sriram
Sriram il 13 Giu 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 il 17 Giu 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.

Accedi per commentare.

Più risposte (2)

Sriram
Sriram il 20 Giu 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 il 17 Giu 2012
Does Windows see them? Or another imaging package?

Community Treasure Hunt

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

Start Hunting!

Translated by