Algorithm 1. For recognizing the spatial correlation. |
Input: of superpixel block i, of superpixel block j. |
Output: spatial correlation between and
|
Begin
// use mask to extract feature of
// is a fully connected layer1
// use mask to extract feature of
// is a fully connected layer1
// obtain union mask of and
// union is the operation of directly add by pixels
// use union mask to extract feature of mask pair
// is a fully connected layer1
// obtain feature embedding of correlation
// is a fully connected layer2
is a fully connected layer3
// obtain feature embedding of correlation
is a fully connected layer2
is a fully connected layer3
// recognize spatial correlation between i and j
is a fully connected layer4
// recognize spatial correlation between j and i
is a fully connected layer4
Return , ;
End
|