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