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], …]

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章