views:

87

answers:

1

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?

+2  A: 

From http://www.mathworks.com/access/helpdesk/help/toolbox/images/medfilt2.html

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.

yuk
But we need to **2** variables to represent an indexed image:`[X,map]`,how can it be done with a single `A` ?
Gtker
The map should be the same as for original image. You need it only to show the image in proper colors.
yuk