You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

DICOM图像分割难题:噪声环境下模糊大正方形检测

DICOM图像分割:识别模糊大正方形区域

我正在处理DICOM文件的图像分割任务,需要区分图像中的不同区域,但受噪声影响,难以识别出模糊的大正方形区域。

DICOM待分割图像

现有代码

import pydicom
import matplotlib.pyplot as plt
import numpy as np

from skimage.filters import threshold_multiotsu
# Use the image instead, as I dont know how to share the dicom file
#(which might also have information I wouldnt want to share)
ds = pydicom.dcmread("file.dcm")
image = ds.pixel_array

#Is this the correct way to convert to 8bit from 16bit?
image =(image / 65535 * 255).astype(np.uint8)

thresholds = threshold_multiotsu(image, classes=4)

regions = np.digitize(image, bins=thresholds)

plt.imshow(regions)
plt.show()

尝试情况与问题

  • 上述代码未加入轮廓检测,因为该方法会检测出过多冗余轮廓,无法有效绘制。
  • 考虑过采用多数投票或区域模糊处理,但对图像分割技术并不熟悉。
  • 核心需求是检测大正方形区域,另外两个小正方形用其他方法较易识别。
  • 已尝试Canny边缘检测、普通阈值分割、自适应阈值分割,其中multiotsu阈值分割效果最佳,能识别出两个小正方形,但针对大正方形的处理仍不理想,即使尝试高斯模糊也无明显改善。

内容的提问来源于stack exchange,提问作者Thanos Tsalas

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.25 01:10:04