PRESENT-Y / TaG-Net

[IEEE-TMI'23] TaG-Net: Topology-aware Graph Network for Centerline-based Vessel Labeling
GNU General Public License v3.0
32 stars 1 forks source link

关于find_start_end_nodes(label_pc, pair_to_check, G_nx)这个函数的一些问题 #3

Open x-jeff opened 2 weeks ago

x-jeff commented 2 weeks ago

作者,您好,

最近在研究TaG-Net血管补全部分的代码,在看到find_start_end_nodes这个函数时,发现有如下问题:

        if label in SA_label:
            if len(list(set(pair_to_check).intersection(set([12, 14]))))==2:
                print('{} has 12 and 14'.format(patient))
                if [1,12] in label_pairs:
                    flag_1214 = 1
                    break
                else:
                    idx_label_one = np.nonzero(label_pc == 1)
                    idx_label_one = list(idx_label_one[0])
                    label_one_one_list = [idx for idx in idx_label_one if degree_list[int(idx)] == 1]
                    degree_one_list = [idx for idx in (degree_one_list + label_one_one_list)]

其中,patient和label_pairs两个变量并未定义,如果代码走到这个if分支则会报错。 此外,还有一个问题,为什么会有[1, 12]?BCT和L-VA之间会有连接吗?

希望作者可以帮助解答困惑,非常感谢~

PRESENT-Y commented 2 weeks ago

头颈血管解剖连接关系存在个体差异,是存在这样的连接关系的。

----- 原始邮件 ----- 发件人: "x-jeff" @.> 收件人: "PRESENT-Y/TaG-Net" @.> 抄送: "Subscribed" @.***> 发送时间: 星期四, 2024年 7 月 04日 上午 1:58:18 主题: [PRESENT-Y/TaG-Net] 关于find_start_end_nodes(label_pc, pair_to_check, G_nx)这个函数的一些问题 (Issue #3)

作者,您好,

最近在研究TaG-Net血管补全部分的代码,在看到find_start_end_nodes这个函数时,发现有如下问题:

        if label in SA_label:
            if len(list(set(pair_to_check).intersection(set([12, 14]))))==2:
                print('{} has 12 and 14'.format(patient))
                if [1,12] in label_pairs:
                    flag_1214 = 1
                    break
                else:
                    idx_label_one = np.nonzero(label_pc == 1)
                    idx_label_one = list(idx_label_one[0])
                    label_one_one_list = [idx for idx in idx_label_one if degree_list[int(idx)] == 1]
                    degree_one_list = [idx for idx in (degree_one_list + label_one_one_list)]

其中,patient和label_pairs两个变量并未定义,如果代码走到这个if分支则会报错。 此外,还有一个问题,为什么会有[1, 12]?BCT和L-VA之间会有连接吗?

希望作者可以帮助解答困惑,非常感谢~

-- Reply to this email directly or view it on GitHub: https://github.com/PRESENT-Y/TaG-Net/issues/3 You are receiving this because you are subscribed to this thread.

Message ID: @.***>

x-jeff commented 1 week ago

感谢回答。 那这个分支的代码中,patient和label_pairs两个变量并未定义,这个问题后续会解决吗?多谢~

PRESENT-Y commented 1 week ago

感谢提出哇,这部分属于后处理的代码了,可以参考一下。

----- 原始邮件 ----- 发件人: "x-jeff" @.> 收件人: "PRESENT-Y/TaG-Net" @.> 抄送: "Lin" @.>, "Comment" @.> 发送时间: 星期一, 2024年 7 月 08日 下午 8:52:41 主题: Re: [PRESENT-Y/TaG-Net] 关于find_start_end_nodes(label_pc, pair_to_check, G_nx)这个函数的一些问题 (Issue #3)

感谢回答。 那这个分支的代码中,patient和label_pairs两个变量并未定义,这个问题后续会解决吗?多谢~

-- Reply to this email directly or view it on GitHub: https://github.com/PRESENT-Y/TaG-Net/issues/3#issuecomment-2215868626 You are receiving this because you commented.

Message ID: @.***>