Filter löschen
Filter löschen

Image feature extraction calculation

3 Ansichten (letzte 30 Tage)
Syed Zenith Rhyhan
Syed Zenith Rhyhan am 23 Jun. 2019
Kommentiert: Manish M am 27 Jun. 2019
how can i calculate Contrast,Corelation,Homogeneity value from an image using Matlab?Please help me sharing the source code?

Akzeptierte Antwort

Manish M
Manish M am 23 Jun. 2019
Hi
  • Image contrast: image_contrast = max(grayImage(:)) - min(grayImage(:));
  • Correlation Coefficient: It is calculated b/w two images not with a single image. correlation = corr2(a, b) where a and b are two images.
  • Homogenity: homogeneity = graycoprops(graycomatrix(img), 'Homogeneity')
  4 Kommentare
Syed Zenith Rhyhan
Syed Zenith Rhyhan am 23 Jun. 2019
Hi
I want to calculate the homogenity of images. This can be done directly in Matlab with
homogeneity = graycoprops(graycomatrix(img), 'Homogeneity')
Is that right?
Unfortunately I'm not allowed to use the image processing toolbox. Is there some formula for calculating the homogenity so that I can implement it myself?
Or is the sourcecode of graycomatrix and graycoprops available, so that I just can take it?
Manish M
Manish M am 27 Jun. 2019
If you have the Image processing toolbox in MATLAB, then in the command window type 'edit graycoprops' & 'edit graycomatrix'. You'll get the source code.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Get Started with Image Processing Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by