MATLAB Answers

0

Finding Frame Count for DICOM File

Asked by Eli Handwerk on 31 Jul 2019
Latest activity Answered by Divya Gaddipati on 5 Aug 2019
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.

1 Answer

Answer by Divya Gaddipati on 5 Aug 2019
 Accepted Answer

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.