How to do a maximum rank filter
Show older comments
I would like to do a 3x3 max-rank filter with 0 padding. How would I go about doing this? Currently I have tried:
M = [203 167 233 113 222 232;
79 176 39 27 22 46;
135 191 211 256 102 67;
42 115 137 1 66 37;
154 21 254 198 204 35;
67 58 20 208 110 222];
localMaxImage = imdilate(M, true(3))
Accepted Answer
More Answers (1)
Image Analyst
on 25 Nov 2021
0 votes
Looks right to me. Do you think something is wrong with that?
1 Comment
Jimmy Neutron
on 27 Nov 2021
Categories
Find more on Morphological Operations in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!