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

1 次查看(过去 30 天)
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.

采纳的回答

Ashish Uthama
Ashish Uthama 2012-6-12
Look at imfinfo.
  2 个评论
Sriram
Sriram 2012-6-13
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 2012-6-17
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.

请先登录,再进行评论。

更多回答(2 个)

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

类别

Help CenterFile Exchange 中查找有关 Image Processing Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by