Can you use command prompt to input a nifti file?

7 次查看(过去 30 天)
I want to create a sort of GUI to ask user to input a file, I have found that input() only works with singel numbers.
Is there a function that allows you to input full images/ volumes?

回答(1 个)

Walter Roberson
Walter Roberson 2025-4-29
See uigetfile to prompt for the file name.
After you have the file name, you would need to take appropriate importing steps, such as imread()
If you are dealing with volumes then you might consider instead using uigetdir together with medicalVolume

类别

Help CenterFile Exchange 中查找有关 Image Processing Toolbox 的更多信息

产品


版本

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by