# How to get original DICOM CT Scan frame number from binary segmentation file?

**URL:** <https://discourse.slicer.org/t/how-to-get-original-dicom-ct-scan-frame-number-from-binary-segmentation-file/31902>\
**Category:** Support\
**Created:** [September 26, 2023, 1:13am UTC](https://discourse.slicer.org/t/how-to-get-original-dicom-ct-scan-frame-number-from-binary-segmentation-file/31902 "2023-09-26T01:13:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![HPatel33](https://avatars.discourse-cdn.com/v4/letter/h/41988e/32.png) [@HPatel33](https://discourse.slicer.org/u/HPatel33)\
**Post date:** [September 26, 2023, 1:13am UTC](https://discourse.slicer.org/t/how-to-get-original-dicom-ct-scan-frame-number-from-binary-segmentation-file/31902/1 "2023-09-26T01:13:56Z")

</div>

Hi all – I am working on a deep learning framework for liver metastasis. I have the original DICOM CT of the abdomen and pelvis and a binary segmentation mask of the liver alone. I would like to pass axial images of JUST the liver segmentation to an LSTM network however I am having difficulty extracting frames of just the liver using the binary segmentation mask.

If there are tutorials available with a similar issue I would greatly appreciate the help. Thank you in advance.
