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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T15:55:02+00:00 2026-05-24T15:55:02+00:00

Quick question, I’m looking for a python function that performs the equivalent job that

  • 0

Quick question, I’m looking for a python function that performs the equivalent job that matlab’s imfill.m does. I realize that python has openCV but I have been unable to get that to work properly and am trying to find a substitute for it. The part of imfill that I’m trying to replicate is the ‘holes’ part of it.

I have a mask that I’ve generated but I’m trying to fill in all regions that are surrounded by ‘land’ and leave only the water regions unfilled in.

If this isn’t clear enough please let me know and I can try and be more specific. Thank you for your time.

  • 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-24T15:55:03+00:00Added an answer on May 24, 2026 at 3:55 pm

    I was able to find a function within scipy that performed similar to what imfill does. It’s called binary_fill_holes and it can be found here for anyone that is having the same problem as myself.

    Although I can’t take full/any real credit for finding it since it was answered here to one of my other questions PIL Plus/imToolkit replacements by unutbu.

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

Sidebar

Related Questions

Quick question. I just read that if you wanted to add a function to
Quick question: If I have a very large function/sub in a class that is
Quick question. What do you think, I have a few sites that use a
Quick question. There is a legacy website (that is not under my control and
A quick question: When declaring the DLLImport Attribute in .Net, where does the runtime
quick question Can you use the free() function without having to prior call a
Quick question just to verify something. If I have an HTML5 mobile advertisement that
Quick question regarding settimeout, does it execute periodically like setinterval? Say I have a
Quick question that I can't seem to find anywhere; at least not a clear
Really quick question.. Does Linq2NHibernate always create a left join to retrieve relationships? Is

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.