Skip to main content
. 2021 Dec 23;13(1):15. doi: 10.3390/mi13010015
Algorithm 1 The implementation of local spatial feature suppression.

Here, the feature map is Xl={x1,x2,,xm}, rBernoulli(p) has p probability of being 1, c is the number of network channels, and ct is a random integer to control the number of loops.

forl=1,,c do

    Initialize r;

    if r==1 then

        Initialize ct;

        for i=1,,ct do

           X˜l=PXl;

    else

        X˜l=Xl;