Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7170061
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T15:08:07+00:00 2026-05-28T15:08:07+00:00

This is what i am trying to do in MATLAB but can’t seem to

  • 0

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

casia

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T15:08:08+00:00Added an answer on May 28, 2026 at 3:08 pm

    Here’s a solution:

    img = imread('https://i.stack.imgur.com/tY3YE.jpg');
    img = rgb2gray(img); %# transform jpeg color image to grayscale
    
    minValue = min(img,[],2);
    %# set the pixels equal to the minimum value to 1
    bw = bsxfun(@eq,img,minValue);
    

    When I run this on the image you linked, I get

    enter image description here

    Which shows that there are plenty of border effects from median filtering. Removing the border 10 pixels, i.e. with

    img = img(10:end-9,10:end-9);
    

    and running the code again, I find

    enter image description here

    Which makes quite a bit more sense.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying this: {:id => 5, :foos => [1,2,3]}.each {|k,v| v.to_s} But that's returning
This question may be a duplicate of this question , but I can't get
I am trying to sub-array in MATLAB with no luck. This is what I
Im trying this, but when i press it it dont changes, it only displays
I'm trying this pattern: (r'^jobs/(?P<job_id>\d+)/$', job_handler) To work with jobs/ and jobs/{job_id}, but the
I am trying to run the example code from the MATLAB Doc, but when
Can anybody give me some hints for solving this? I'm trying to compile Kinect
I know Octave/MATLAB can play arrays as sound, but I was wondering if Octave
I am trying to learn MatLab on my own. I get most of the
I am trying to migrate over to Python from Matlab and can't figure out

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.