Main Content

基于文件读写图像数据

基于文件读写图像数据,获取图像文件的内容信息

Image Processing Toolbox™ 使您能够读取和写入许多常见文件格式的图像文件,包括 BMP、GIF、JPEG、PNG 和 TIFF。该工具箱支持读取和写入医疗文件格式,包括 DICOM、NIfTI 和 Analyze 7.5。工具箱还支持读取 RAW 文件格式。您还可以处理特殊文件格式的图像,包括 NITF、DPX 和 Interfile。

App

DICOM 浏览器浏览 DICOM 文件的集合

函数

全部展开

imread从图形文件读取图像
imwrite将图像写入图形文件
imfinfo有关图形文件的信息
dicominfo从 DICOM 消息中读取元数据
dicomfindFind location and value of target attribute in DICOM metadata (自 R2021b 起)
dicomupdateUpdate value of target attribute in DICOM metadata (自 R2021b 起)
dicomread读取 DICOM 图像
dicomwriteWrite images as DICOM files
dicomreadVolumeCreate 4-D volume from set of DICOM images
dicomCollectionGather details about related series of DICOM files
dicomContoursExtract ROI data from DICOM-RT structure set (自 R2020a 起)
dicomanonAnonymize DICOM file
dicomdictGet or set active DICOM data dictionary
dicomdispDisplay DICOM file structure
dicomlookupFind attribute in DICOM data dictionary
dicomuid生成 DICOM 全局唯一标识符
images.dicom.decodeUIDGet information about DICOM unique identifier
images.dicom.parseDICOMDIRExtract metadata from DICOMDIR file
rawinfoRead metadata from RAW file (自 R2021a 起)
rawreadRead color filter array (CFA) image from RAW file (自 R2021a 起)
raw2rgbTransform color filter array (CFA) image in RAW file into RGB image (自 R2021a 起)
planar2rawCombine planar sensor images into full Bayer pattern CFA (自 R2021a 起)
raw2planarSeparate Bayer pattern color filter array (CFA) image into sensor element images (自 R2021a 起)
tiffreadVolumeRead volume or time series image stack from TIFF file (自 R2020b 起)
niftiinfoRead metadata from NIfTI file
niftiwriteWrite volume to file using NIfTI format
niftireadRead NIfTI image
analyze75info从 Analyze 7.5 数据集的头文件中读取元数据
analyze75readRead image data from image file of Analyze 7.5 data set
interfileinfoRead metadata from Interfile file
interfilereadRead images in Interfile format
nitfinfoRead metadata from National Imagery Transmission Format (NITF) file
nitfreadRead image from NITF file
isnitfCheck if file is National Imagery Transmission Format (NITF) file
dpxinfoRead metadata from DPX file
dpxreadRead DPX image
exrinfoRead metadata from EXR file (自 R2022b 起)
exrreadRead image data from EXR file (自 R2022b 起)
exrwriteWrite image data to EXR file (自 R2022b 起)
isexrCheck if file is valid EXR file (自 R2022b 起)
exrHalfAsSingle Convert numeric values into half-precision values (自 R2022b 起)

主题

读写标准图形文件

处理 RAW 文件

处理 DICOM 和其他医疗文件

精选示例