meng-tang/rloss

What is the "AS" variable in the bilateralfilter.cpp

yzou2 opened this issue · 2 comments

yzou2 commented

Thanks for sharing this code. Great job.

Would you kindly tell me what the "AS" variable means in your bilateralfilter.cpp

AS = np.zeros(segmentations.shape, dtype=np.float32)

AS means the affinity matrix A (HW x HW) times the segmentation S (HW x C) with C classes.
So AS is of dimension HW x C. It is essentially bilateral filtering if A is a matrix with Gaussian kernel.
This computation is accelerated by fast bilateral filtering for dense Gaussian.

yzou2 commented

Thanks! I get what you mean. And in the code, I think the AS is the vectorized one.