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 7966445
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T06:25:41+00:00 2026-06-04T06:25:41+00:00

I’m working on a piece of code in MATLAB using the Image Processing Toolbox,

  • 0

I’m working on a piece of code in MATLAB using the Image Processing Toolbox, where I’ve used Skel=bwmorph(BM,’skel’) to get a skeleton of a river. I want to use BP=bwmorph(Skel,’branchpoints’) to get the points where confluences and tributaries exist. I’m getting a lot of false positives in BP whenever the skeleton looks like

oQo
Q
o

It marks the Q pixels as branch points as well, along with the actual, expected branch points. There are a lot of false positives like that.

I have noticed that a true branch point occours as an isolated pixel in BP, while fals branch points always form in pairs.

Can anyone please tell me how the branchpoints algorithm finds the points?
If I know that, I can be satisfied that there is an actual reason why the false positives are in pairs, and true positives are alone, rather than a lucky coincidence.

I have a feeling it looks at the 8-connectivity around the pixel, but I think that’s not all it does.

To clarify, I’ve marked a cropped image of the output. The positives it gives are shown in red. As can be seen, just one of these pixels is actually a branch point. I want to know how the algorithm works so that I can give a logical reason for why false positives come in pairs (if they infact do).

The image

  • 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-06-04T06:25:42+00:00Added an answer on June 4, 2026 at 6:25 am

    Your pixels are not minimally (8-)connected, try to use

    Thin = bwmorph(Skel,'thin');
    BP = bwmorph(Thin,'branchpoints');
    

    to remove the unnecessary pixels. (You could also use thin instead of skel).

    I think the basic algorithm of branchpoints looks at the 3,3 neighbourhood pixels if at least 3 pixels (excluding center) are ‘1’.

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I used javascript for loading a picture on my website depending on which small
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I am reading a book about Javascript and jQuery and using one of the
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I have this code to decode numeric html entities to the UTF8 equivalent character.
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString

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.