Aperio ImageScope xml 读写工具 python

代码储存在
Github仓库:https://github.com/One-sixth/imagescope_xml_utils

这是一个 Aperio ImageScope 的 XML标签文件读写类
支持读取和写入 方框,轮廓,箭头,椭圆标签。
目前不支持读取和写入 xml 的元数据

注意,因本人习惯原因。坐标排列顺序为 yx,不是xy。

详情更多请参见代码仓库Readme

坐标格式:
boxes (use_box_y1x1y2x2=True): [y1x1y2x2, y1x1y2x2, …]
boxes (use_box_y1x1y2x2=False): [[top_left_yx, top_right_yx, bottom_right_yx, bottom_left_yx], [top_left_yx, top_right_yx, bottom_right_yx, bottom_left_yx], …]

arrows (keep_arrow_tail=True): [[head_yx, tail_yx], [head_yx, tail_yx], …]
arrows (keep_arrow_tail=False): [head_yx, head_yx, …]

contours : [[con_yx, con_yx, …], [con_yx, con_yx, …], …]

ellipses : [[top_left_yx, bottom_right_yx], [top_left_yx, bottom_right_yx], …]

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值