Immediate_Neighbors​(x)

Function that calculates the sum of the 8 neighboring pixels for every pixel in an image
92 Downloads
Updated 2 Jun 2015

View License

This function was written to calculate the sum of the eight pixels surrounding every individual pixel in an image. This function is useful when simulating contact dependent interactions in cell modeling scenarios.

Cite As

Matthew Schneck (2024). Immediate_Neighbors(x) (https://www.mathworks.com/matlabcentral/fileexchange/51022-immediate_neighbors-x), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2015a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.3.0

Fixed bug where matrices of different X and Y dimensions were not calculated properly

1.0.2.0

Reformatted Output

1.0.1.0

Reformatted Output

1.0.0.0