Neighborhood of the instance

in maskrcnn instance segmentation, does the software take into account the neighborhood of the instance to determine it and not only its content?
thank you
best regards

In topology and related areas of mathematics, the neighbourhood system, complete system of neighbourhoods, or neighbourhood filter {\mathcal {N}} for a point x is the collection of all neighbourhoods of the point x.

I’m not talking about that but let’s say points from 0 to 300 pixels from the neighborhood of the instance