- read the medical images into memory arrays
- code that calculates second-order statistics on memory arrays
Requesting a demo code for calculating second-order statistics (contrast, correlation, energy, homogeneity, and entropy) for medical images.
6 views (last 30 days)
Show older comments
I want to calculate second-order statistics (contrast, correlation, energy, homogeneity, and entropy) for medical images (CT/MRI images). Do you have a demo code that I can use as an example when writing my own code?
0 Comments
Answers (2)
Walter Roberson
on 28 May 2023
Split the code up into two parts:
That is, no calculation of those statistics you list cares even a little whether the arrays are from medical images, or from stock images of happy people and hot air ballons used to sell picture frames, or screen captures from VCR tapes of music videos recorded off of MTV. So go ahead and program the statistics based on receiving 2D arrays (or general arrays), and call those functions passing in the contents of the images you read in.
Image Analyst
on 28 May 2023
Try graycoprops. I'm also attaching a related GLCM demo and image moments demo. Good luck.
help graycoprops
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!