1. pydicom-易学教程

  2. DICOM “.dcm”数据基本操作方法(python)

  3. pydicom的官方documents参考   https://pydicom.github.io/pydicom/stable/getting_started.html

  4. Python对DICOM图像进行阈值分割

1、dicom.dcmread()

def dcmread(fp, defer_size=None, stop_before_pixels=False,force=False, specific_tags=None):
"""Read and parse a DICOM dataset stored in the DICOM File Format.Read a DICOM dataset stored in accordance with the DICOM File Format(DICOM Standard Part 10 Section 7). If the dataset is not stored inaccordance with the File Format (i.e. the preamble and prefix are missing,there are missing required Type 1 File Meta Information Group elementsor the entire File Meta Information is missing) then you will have toset `force` to True.Parameters----------fp : str or file-likeEither a file-like object, or a string containing the file name. If afile-like object, the caller is responsible for closing it.defer_size : int or str or NoneIf None (default), all elements read into memory. If specified, then ifa data element's stored value is larger than `defer_size`, the value isnot read into memory until it is accessed in code. Specify an integer(bytes), or a string value with units, e.g. "512 KB", "2 MB".stop_before_pixels : boolIf False (default), the full file will be read and parsed. Set True tostop before reading (7FE0,0010) 'Pixel Data' (and all subsequentelements).force : boolIf False (default), raises an InvalidDicomError if the file is missingthe File Meta Information header. Set to True to force reading even ifno File Meta Information header is found.specific_tags : list or NoneIf not None, only the tags in the list are returned. The listelements can be tags or tag names. Note that the tag SpecificCharacter Set is always returned if present - this ensures correctdecoding of returned text values. Returns-------FileDatasetAn instance of FileDataset that represents a parsed DICOM file.Raises------InvalidDicomErrorIf `force` is True and the file is not a valid DICOM file.See Also--------pydicom.dataset.FileDatasetData class that is returned.pydicom.filereader.read_partialOnly read part of a DICOM file, stopping on given conditions.
Examples
--------
Read and return a dataset stored in accordance with the DICOM File Format:>>> ds = pydicom.dcmread("rtplan.dcm")
>>> ds.PatientNameRead and return a dataset not in accordance with the DICOM File Format:>>> ds = pydicom.dcmread("rtplan.dcm", force=True)
>>> ds.PatientNameUse within a context manager:>>> with pydicom.dcmread("rtplan.dcm") as ds:
>>>     ds.PatientName
"""

pydicom----用法一相关推荐

  1. Pydicom User Giude

    1. Core elements in pydicom 1.1 Dataset Dataset(数据集)是一个字典数据类型,键是 DICOM tag,值是 DataElemtne instance.可 ...

  2. python dicom图像分割_处理医疗影像的Python利器:PyDicom

    Pydicom是一个用于处理DICOM格式文件的Python包,可以处理包括如医学图像(CT等).报告等. Pydicom支持DICOM格式的读取:可以将dicom文件读入python结构,同时支持修 ...

  3. ubuntu16.04在英文状态下安装中文语言包的过程(法一:图形界面的方式) 以及 安装中文语言包后无法选择汉语问题的解决

    ubuntu16.04在英文状态下安装中文语言包的过程(法一:图形界面的方式) 以及 安装中文语言包后无法选择汉语问题的解决 参考文章: (1)ubuntu16.04在英文状态下安装中文语言包的过程( ...

  4. Solr相似度算法一:Lucene TF-IDF 相关性算分公式

     Solr相似度算法一:Lucene TF-IDF 相关性算分公式 Lucene在进行关键词查询的时候,默认用TF-IDF算法来计算关键词和文档的相关性,用这个数据排序 TF:词频,IDF:逆向文 ...

  5. 导出oracle sequences,CSS_oracle导出序列方法分析,方法一:SELECT ' CREATE SEQUEN - phpStudy...

    oracle导出序列方法分析 方法一: SELECT ' CREATE SEQUENCE '||SEQUENCE_NAME|| ' INCREMENT BY '|| INCREMENT_BY ||' ...

  6. JBOSS通过Apache负载均衡方法一:使用mod_jk

    JBOSS通过Apache负载均衡方法一:使用mod_jk   本文第一.二节分别对Linux环境下前端使用Apache以及windows环境下前端使用IIS通过AJP协议和后端的JBOSS通信实现负 ...

  7. 分析:windows下cmd默认的编码是ASCII编码 ,windows的中文环境下编码是GBK 方法一:在保存输出流保存的时候做一个对文字GBK编码,在输出到文件 如下 [python] view

    分析:windows下cmd默认的编码是ASCII编码 ,windows的中文环境下编码是GBK 方法一:在保存输出流保存的时候做一个对文字GBK编码,在输出到文件 如下 [python] view ...

  8. php excel header,【IT专家】PHP生成excel,方法一-header生成

    本文由我司收集整编,推荐下载,如有疑问,请与我司联系 PHP生成excel,方法一:header生成 2018/02/09 444 public function export_order() { / ...

  9. P2386 放苹果 方法一

    http://noi.openjudge.cn/ch0203/666/ /* 2.3基本算法之递归变递推_666放苹果 方法一 http://noi.openjudge.cn/ch0203/666/1 ...

  10. NOIP2016 复赛普及组第 1 题 买铅笔 方法一

    /* NOIP2016 复赛普及组第 1 题 买铅笔 方法一  P1909 买铅笔 https://www.luogu.org/problem/P1909 */ #include<cstdio& ...

最新文章

  1. 网易java二面_网易Java开发面试:一面+二面+三面以及 面试经验总结
  2. (转贴)给Repeater、Datalist和Datagrid增加自动编号列
  3. Ciel and Robot CodeForces - 322C
  4. 谈谈Runtime类中的freeMemory,totalMemory,maxMemory几个方法
  5. mssql性能优化[转](教你写出高质量的SQL语句)(二)
  6. javascript用户登录_SAP HANA XS的JavaScript安全事项
  7. 智能外呼系统相关资料总结
  8. golang编译时报错:Get “https://proxy.golang.org/github.com/antihax/optional/@v/v1.0.0.mod“: dial tcp 172.2
  9. java uint16 t_uint8_t / uint16_t / uint32_t /uint64_t 的简单介绍
  10. 能源行业将被重构,大数据有哪些“挖”法?
  11. 浅谈volatile的原理
  12. Java从入门到精通+第三版.pdf
  13. VScode中文注释乱码问题解决
  14. 电感电容之开关电源的原理
  15. 使用detours技术hook系统API
  16. jquery Ajax回调函数
  17. 财务机器人正式上岗,一个机器顶40个人!
  18. java string替换最后一个字符_sed替换每行最后一个字符
  19. hsql导入mysql_关于HSQLDB访问已有数据库文件的操作说明
  20. phpadmin安装到mysql中_PHPAdmin的安装和配置

热门文章

  1. 油猴(Tampermonkey)简介及使用教程
  2. 如何计算 R 中的变异系数
  3. vs2019编译zlib全过程
  4. jvm深入理解:内存分配与回收策略(优先在Eden分配、大对象直接进入老年代、长期存活的对象将进入老年代、动态对象年龄判定、空间分配担保)
  5. Ubuntu 18.04 下载安装NVIDIA显卡驱动和CUDA
  6. python用mpl_finance中的candlestick_ohlc画分时图
  7. 2021年网络安全设备漏洞集合
  8. Rufus制作ubuntu的U盘启动盘
  9. 【代码审计】iCMS_v7.0.7 apps.admincp.php页面存在SQL注入漏洞分析
  10. Saber仿真软件no active design解决方法