How medfilt2() work on a 2D array and how to convert the medfilt2() into Java?

1 view (last 30 days)
Hey there! I am currently with converting a MATLAB code on image processing into Java. I got stuck with the medfilt2() of MATLAB. I would like to know how can I manually code the medfilt2() of MATLAB on Java. I would like to code the entire working of medfilt2() in Java. I have a 2 dimensional array of elements 0s and 1s which I obtained after some processings on an image. And I have to do medfilt2() on this 2 dimensional array, and the function in MATLAB is in the form B = medfilt2(A, [m n]).
I would also like to get an idea on how medfilt2() process the elements of an array that I got. I am looking forward for a help in doing this task. Thanks in advance!

Answers (0)

Tags

No tags entered yet.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!