HowieMa / NSRMhand

[WACV 2020] "Nonparametric Structure Regularization Machine for 2D Hand Pose Estimation"
104 stars 16 forks source link

What do mask1, mask2 and mask3 mean? #12

Closed aqsc closed 3 years ago

aqsc commented 3 years ago

when generating limb structure, we use mask1 = cross <= 0 # 46 * 46 mask2 = cross >= length2 mask3 = 1 - mask1 | mask2

D2 = np.zeros((self.label_size, self.label_size)) D2 += mask1.astype('float32') ((x - x1) (x - x1) + (y - y1) (y - y1)) D2 += mask2.astype('float32') ((x - x2) (x - x2) + (y - y2) (y - y2)) D2 += mask3.astype('float32') ((x - px) (x - px) + (py - y) * (py - y))

HowieMa commented 3 years ago

They are just some intermediate variables. You can find details in this link for more mathematical understanding (Chinese version). And I already posted it in thecomment.