Sliding pixel window to get 8 neighbour pixel values
Show older comments
Hi, Can anyone plz tell me how to slide a filter window of 3*3 over the pixels of an image one by one and get the 8 neighbouring pixel values.
5 Comments
Jan
on 18 Mar 2021
What do you wnt to do with the 8 neighboring pixles? With "getting" the problem is not solve, is it?
Adam Danz
on 18 Mar 2021
What do you plan to do with the 3x3 windows?
thorati chiranjeevi
on 19 Mar 2021
thorati chiranjeevi
on 19 Mar 2021
Accepted Answer
More Answers (1)
Walter Roberson
on 19 Mar 2021
0 votes
2 Comments
thorati chiranjeevi
on 19 Mar 2021
Looking briefly at nlfilter.m, the filtering is done by a sliding window by 1 unit rather than acting as a boxcar filter that slides by the width/height of the window.
> can you please provide the code
@thorati chiranjeevi, it's unlikely that someone's going to volunteer to do your work for you. Some questions are specific and providing code is the best way to answer them. Your question does not point to a specific problem so the responses you'll likely get are ones that will point you in the right direction.
Categories
Find more on Video Formats and Interfaces in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!