当前位置:网站首页>How does MATLAB display nii file slice information in the image?
How does MATLAB display nii file slice information in the image?
2022-07-30 07:08:00 【enen mad】
MATLAB version: R2017a
step1: Download the package in MATLAB Add-Ons Tools for NIfTI and ANALYZE image
Click to download and load to MATLAB installation path
You can also directly click the link to download, but you need to choose the path yourself
http://www.mathworks.com/matlabc ... i-and-analyze-image |
step2: Enter the code snippet in the command line window
help load_nii_imgnii = load_nii('filename.nii'); % select the .nii file in the pathimg = nii.img; % read file[n1,n2,n3] = size(img); % Get the size of the fileimshow(img(:,:,10),[]); % preview the 10th slicefor i = 1:n3figure(i);ti = imshow(img(:,:,i),[]); % show slices in sequenceend% close all
That's it
Referencehttps://blog.csdn.net/DoReAGON/article/details/82835057
If you want to display the 3D information of the nii file, you can use the following code
nii = load_nii('xxxxx.nii') % filenameview_nii(nii) % view_nii function -- view 3D information of nii file
边栏推荐
- Function functional interface and application
- GraphQL(一)基础介绍及应用示例
- mysql delete duplicate data in the table, (retain only one row)
- 边境的悍匪—机器学习实战:第九章 无监督学习任务
- 常用损失函数(一):Focal Loss
- Mycat2.0 build tutorial
- The number of warehouse 】 data quality
- Invalid bound statement (not found)出现的原因和解决方法
- 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.)
- 无人机生态环境监测、图像处理与GIS数据分析
猜你喜欢
随机推荐
八、Kotlin基础学习:1、数据类;2、单例;3、伴生对象;4、密封类;
GraphQL(一)基础介绍及应用示例
AAcell五号文档室——跨平台文件传输的小室一间一间的
MySQL 索引的数据结构及类型
Simulation of Future Air Pollution Changes Based on Global Model Comparison Program CMIP6 and Regional Climate-Chemistry Coupling Model WRF-Chem
九、Kotlin基础学习:1、Companion的扩展方法和扩展属性;2、一般类的扩展方法和扩展属性;3、委托;
sql中 exists的用法
Detailed explanation of ClickHouse query statement
建造者模式(Swift 实现)
CNN经典模型发展进程
Common exception analysis of Redis client
《MySQL高级篇》四、索引的存储结构
Rsync实现Win系统间的文件夹或数据同步
抽象工厂模式(Swift 实现)
Reasons and solutions for Invalid bound statement (not found)
Pytorch(二):数据读取机制(DataLoader、DataSet)与图像预处理模块(transforms)
Arthas 命令解析(jvm/thread/stack/heapdump)
目标检测中的知识蒸馏方法
Redis publish/subscribe
【MySQL功法】第5话 · SQL单表查询