【问题标题】:How to get object coordinates of multilabel threshold image如何获取多标签阈值图像的对象坐标
【发布时间】:2022-06-11 04:10:24
【问题描述】:

我使用 cellpose 来分割我的图像,现在想从标签中提取对象坐标。使用我使用的单标签图像文件:

label_im = label(new_im)
clusters = regionprops(label_im, new_im)

集群将包含我的对象坐标的位置,但我不明白如何使用多标签文件。 array.shape 是 [::,4] 第四个通道完全是白色的?

我可以删除第四个通道,然后将其转换为灰度并对图像进行阈值处理,但这似乎是一种不好的方法,尤其是因为它不会分离触摸对象。

任何有关如何在 python 中处理多标签图像文件,特别是 skimage 的信息将不胜感激。

【问题讨论】:

  • 可以分享原图吗?还分享一下多标签文件的样子?

标签: python numpy image-processing scikit-image


猜你喜欢
  • 1970-01-01
  • 2019-09-22
  • 2018-04-25
  • 2015-08-01
  • 2014-12-18
  • 1970-01-01
  • 2018-08-06
  • 2016-11-19
  • 1970-01-01
相关资源
最近更新 更多