This is what i am trying to do in MATLAB but can’t seem to get around achieving it
For each row in the filtered image, assign a value
of one to the pixels that have the minimum value
in that row and the other pixels to zero

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Here’s a solution:
When I run this on the image you linked, I get
Which shows that there are plenty of border effects from median filtering. Removing the border 10 pixels, i.e. with
and running the code again, I find
Which makes quite a bit more sense.