Reputation: 2247
medfilt2(img)
doesn't take a map
as parameter,
so I don't think it can work well with indexed image,
how do I impelemnt an median filter that can be used to process indexed images?
Upvotes: 2
Views: 816
Reputation: 19870
From the medfilt2
documentation:
B = medfilt2(A, 'indexed', ...)
processes A as an indexed image, padding with 0s if the class of A is uint8, or 1s if the class of A is double.
Upvotes: 3