当前位置:网站首页>MATLAB怎么在图像中显示nii文件切片信息?
MATLAB怎么在图像中显示nii文件切片信息?
2022-07-30 05:44:00 【enen狂】
MATLAB版本:R2017a
step1:在MATLAB附加功能中下载包 Tools for NIfTI and ANALYZE image


点击下载并加载到MATLAB安装路径
也可以直接点击链接下载,但是需要自己选择路径
| http://www.mathworks.com/matlabc ... i-and-analyze-image |
step2:在命令行窗口中输入代码段
help load_nii_img
nii = load_nii('filename.nii'); % 选择路径中的.nii文件
img = nii.img; % 读取文件
[n1,n2,n3] = size(img); % 获取文件的大小
imshow(img(:,:,10),[]); % 预览一下第10张切片
for i = 1:n3
figure(i);
ti = imshow(img(:,:,i),[]); % 依次显示切片
end
% close all这就可以啦
参考https://blog.csdn.net/DoReAGON/article/details/82835057
若想显示nii文件的三维信息,可使用以下代码
nii = load_nii('xxxxx.nii') % 文件名
view_nii(nii) % view_nii 函数--查看nii文件三维信息边栏推荐
- Redis 客户端常见异常分析
- [MATLAB]图像处理——交通标志的识别
- Function functional interface and application
- TDengineGUI cannot connect to TDengine
- 根据ip地址获取地理位置及坐标(离线方式)
- mysql删除表中重复数据,(只保留一行)
- 使用PyQt5为YoloV5添加界面(一)
- Jackson serialization failure problem - oracle data return type can't find the corresponding Serializer
- protobuf编码及网络通信应用(一)
- 在不同的服务器上基于docker部署redis主从同步
猜你喜欢

MySQL开窗函数

Nodejs PM2 monitoring and alarm email (2)

Function functional interface and application

c#下Web3合约空投、转账调用代码

MySQL achievement method 】 【 5 words, single table SQL queries

抽象工厂模式(Swift 实现)

AAcell五号文档室——跨平台文件传输的小室一间一间的

十、Kotlin基础学习:1、延迟加载;2、异常处理;3、使用 throw 主动抛出异常;4、自定义异常;

Flink CDC 实现Postgres到MySQL流式加工传输案例

Redis publish/subscribe
随机推荐
二叉树(一):深度优先遍历与广度优先遍历
C语言学习经验
十、Kotlin基础学习:1、延迟加载;2、异常处理;3、使用 throw 主动抛出异常;4、自定义异常;
Request请求体重新封装,解决请求体只能获取一次的问题
21. Kotlin Advanced Learning: Implementing Simple Network Access Encapsulation
Twenty-two, Kotlin advanced learning: simply learn RecyclerView to achieve list display;
Kotlin协程的简单用法:1、GlobalScope(不建议使用);2、lifecycleScope、viewModelScope(建议使用);
sqli-labs shooting range SQL injection learning Less-1
sql concat()函数
Nodejs PM2 monitoring and alarm email (2)
【MySQL功法】第5话 · SQL单表查询
Conda 安装 tensorflow gpu 1.13.1(验证可行)
TDengine集群搭建
六、Kotlin基础学习:函数
Flink PostgreSQL CDC configuration and FAQ
函数的信息传递(C语言实践)
Competition WP in May
Use kotlin to extend plugins/dependencies to simplify code (after the latest version 4.0, this plugin has been deprecated, so please choose to learn, mainly to understand.)
Usage of exists in sql
十五、Kotlin进阶学习:一、子类与子类型;二、协变;三、逆变;