How to apply nearest neighborhood grouping (NNG) in order to smoothen the spectral response within the pixel’s local neighborhood? My input is an image.

2 views (last 30 days)
How to apply nearest neighborhood grouping (NNG) in order to smoothen the spectral response within the pixel’s local neighborhood? In this method a pixel is chosen. Its surrounding eight neighbors are considered for voting. If a class gets four or more votes, then the chosen pixel is assigned to that class. Otherwise the pixel retains its class. How to put this into matlab code?

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!