How to calculate enrgy of a matrix
12 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
sakshi ahuja
am 29 Mär. 2016
Kommentiert: Salma Hassan
am 11 Sep. 2017
I am having a 2*2 matrix. say it is A=[1 2; 3 4]; how to calculate energy with this.
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 29 Mär. 2016
What is your definition of energy? You could say that if the array is an image, the pixel values are energy already so you can just sum the array
energy = sum(A(:));
Or you can use the energy as defined from the gray level co-occurrence matrix of the array. From the help for graycoprops():
Calculate statistical properties of the GLCM.
stats = graycoprops(glcm)
stats =
Contrast: 2.8947
Correlation: 0.0783
Energy: 0.1191
Homogeneity: 0.5658
Perhaps you have some other definition - I don't know. After you read this, please clarify your definition of energy.
6 Kommentare
Image Analyst
am 11 Sep. 2017
I don't know what your vector represents. It might represent energy. Pixels are energy - just go back to first principles to work out the units.
(A watts /square meter) * (B square meters/pixel) * (C Joules/(Watt second)) * (D seconds exposure time) = Joules that are collected in a one pixel area during the exposure time. So gray levels is proportional to Joules.
Salma Hassan
am 11 Sep. 2017
my feature vector was extracted by Discrete wavelet transform (DWT) as the paper in this link http://www.biomedres.info/biomedical-research/computer-aided-diagnostic-cad-for-feature-extraction-of-lungs-in-chest-radiograph-using-different-transform-features.html
Weitere Antworten (0)
Siehe auch
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!