简体   繁体   English

用dicominfo读取.dcm格式的像素宽长

[英]Read the width and length of the pixel in .dcm format with dicominfo

I have pictures in.dcm format.我有.dcm 格式的图片。 I'm looking for the width and length of the pixel.我正在寻找像素的宽度和长度。 As far as I know that Dicominfo gives the information of the picture.据我所知,Dicominfo 提供了图片的信息。 Do you know what parameters are used to obtain the width and length of the pixel in the Dicominfo?你知道Dicominfo中用什么参数来获取像素的宽和长吗? I had an idea that I first need the FOVx "Field Of View" and then I can divide by the number of pixels.我有一个想法,我首先需要 FOVx“视野”,然后我可以除以像素数。 This is how I get the width and length of the pixel.这就是我获得像素宽度和长度的方式。

I am very grateful for every answer.我非常感谢每一个答案。

Not sure what you exactly mean by "length".不确定您所说的“长度”到底是什么意思。 Furthermore, geometrical information (pixel size in mm) may vary regarding the tag numbers, depending on the type of object.此外,根据 object 的类型,几何信息(以 mm 为单位的像素大小)可能会因标签编号而异。 The attribute tags I am providing here should work for the majority of DICOM images that have geometrical information at all.我在这里提供的属性标签应该适用于大多数具有几何信息的 DICOM 图像。

  • image size in pixels (x,y) -> Columns (0028,0011), Rows (0028,0010)以像素为单位的图像大小 (x,y) -> 列 (0028,0011)、行 (0028,0010)
  • size of the pixels (y,x) -> Pixel Spacing (0028,0030)像素大小 (y,x) -> 像素间距 (0028,0030)

Pixel Spacing is a multi-valued attribute from which you can obtain two values which are separated by a Backslash "\". Pixel Spacing 是一个多值属性,您可以从中获取两个值,这两个值由反斜杠“\”分隔。 Not sure how the API of DicomInfo allows access to multiple values in the same attribute.不确定 DicomInfo 的 API 如何允许访问同一属性中的多个值。

Note the difference "(y,x)" in Pixel Spacing.请注意像素间距中的差异“(y,x)”。 This is very unintuitive, but it is like it is.这是非常不直观的,但它就是这样。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM