I have an image which matrix has some pixels with value NaN
. For such certain pixel, I want to compare its 8-neighbourhood
, and assign it a value based on that neighborhood.
I think for the neighbourhood we use nlfilter
?
How can I do that in matlab
?
Thanks.