Finding Frame Count for DICOM File

17 views (last 30 days)
I'm pretty new to MATLAB, and was wondering if there is a way to get the number of frames in a DICOM ultrasound video. I need this number because I am looping through each frame to analyze them each separately, but I can't seem to find a direct way to access this information. I was looking into dicominfo(filename) to extract the metadata, but I couldn't find any sort of frame count in there, or how to pull the specific variable. Any tips? I feel like this is probably pretty simple and I'll feel stupid for letting it go over my head, but oh well!
Thanks!

Accepted Answer

Divya Gaddipati
Divya Gaddipati on 5 Aug 2019
You can use the function dicomCollection to get the number of frames.
For more information on how to use this function, refer to this link.

More Answers (0)

Categories

Find more on DICOM Format in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!