Gtker
Gtker

Reputation: 2247

How to do median filter on an indexed image using MATLAB?

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

Answers (1)

yuk
yuk

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

Related Questions