@vighneshbirodkar, thanks, additional changes:
- change `array` to more commonly used `im`, `img` or `ar`. (`array` can be confused with the class `np.array`.)
- use `ar.ndim` instead of 3 as the rank, and rename function to just `get_local_maxima`, which now works in nd.
- change docstring under `connectivity` to specify that number of neighbors is an example for 3D arrays.
- I think exposing this under `feature` is not bad, but not great either. I might favor `morphology`. @stefanv what do you think? Pigeonholes are hard... =)
- Maybe add a doctest example showing the output for a 2D, 5x5 image with two local maxima.