add_neighborhood
- MPPData.add_neighborhood(size=3, copy=False)[source]
Add a square neighbourhood around each pixels to the mpp_data.
- Parameters
neighborhood_size – Size n of the neighbourhood. The resulting mpp representation will then be set to a n x n square around each pixel.
copy (
bool) – return new MPPData object or modify in place.
- Return type
The modified MPPData.