Extract Patient Name from Dicom Images

6 ビュー (過去 30 日間)
Neha P
Neha P 2016 年 8 月 22 日
回答済み: Abhipsa 2025 年 3 月 5 日
Hi all, how can i extract only Patient name in dicom image. I used dicomlookup to extract paitent details but i just need patient name from it.
for eg. FamilyName: '' GivenName: '' MiddleName: '' NamePrefix: '' NameSuffix: '' Please help me.

回答 (1 件)

Abhipsa
Abhipsa 2025 年 3 月 5 日
Hii @Neha P,
The patient’s name can be extracted from DICOM image using dicominfo function available in MATLAB.
You can refer to the code segment below for extracting the patient’s name:
metadata = dicom(image_path); % you can replace the placeholder "image_path" with your actual path
patientName = matadata.PatientName % this will output a structure containing all the patient name’s related fields
You can refer to MATLAB documentation for dicominfo function below:
I hope this resolves your query.

カテゴリ

Help Center および File ExchangeDICOM Format についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by