Zyun-Y / DconnNet

Codes for CVPR2023 paper "Directional Connectivity-based Segmentation of Medical Images"
131 stars 7 forks source link

How does Bilateral_voting work? #22

Closed jzyxn closed 7 months ago

jzyxn commented 7 months ago

Hi author, in the Bilateral_voting function, I am confused by code like the following left =(torch.bmm(c_map[:,:,3].contiguous().view(-1,row,column),hori_translation.transpose(3,2).view(-1,column,column))).view(batch, classnum,row,column) According to my current knowledge, I think it is calculating the part X{9-j}(x+a,y+b) according to equation (11), may I ask the author what exactly it is doing, I hope the author can tell me (due to my weak code ability, I hope the author can be as detailed as possible). I would be grateful if the author could give me some advice.

Zyun-Y commented 7 months ago

Hi, you were right. This was used to shift the c_map to the different directions (left for here) with a matrix multiplication

jzyxn commented 7 months ago

Ok,thanks