How do I select a window of pixels around a pixel?
3 views (last 30 days)
Show older comments
I need to select a window of 7 * 7 pixels around a selected pixel and navigate through each pixel in an image (grayscale binary image) using a for loop within the window and extract brightness intensity of each pixel wihin the window. I needed to find the mean of intensity value.
Valuable guidance and help will be highly appreciated
Thank you in advance
0 Comments
Answers (1)
Ameer Hamza
on 18 Nov 2020
See conv2(): https://www.mathworks.com/help/matlab/ref/conv2.html or imfilter(): https://www.mathworks.com/help/images/ref/imfilter.html
0 Comments
See Also
Categories
Find more on Image Processing Toolbox 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!