MATLAB Answers

Finding Frame Count for DICOM File

4 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!

  0 Comments

Sign in to comment.

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.

  0 Comments

Sign in to comment.

More Answers (0)

Sign in to answer this question.