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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T16:23:52+00:00 2026-05-21T16:23:52+00:00

Like the definition of median filter, I can define maximum filter as for a

  • 0

Like the definition of median filter, I can define “maximum filter” as for a local window

e.g. dst(x,y) = max(3×3 local window pixels)

But I cannot find such a filter in opencv, the closest one is “dilate” function

Then I use the default configuration of “dilate” function, but the result is incorrect
compare to my brute force implementation of the maximum filter.

I found that for 3×3 case, the equivalent dilate configuration is to use a 1×1 rectangular structure element, that is

dilate(src, dst, getStructuringElement(MORPH_RECT, Size(1,1)))

My questions are:

  1. It seemed counter-intuitive for me that I thought a structure element is equivalent to a local window. But now the local window’s size is only 1×1 pixel?

  2. What if my maximum filter’s local window expands(e.g. 5×5, 7×7)? Is there any relationship between the maximum filter and dilation filter?

  • 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-21T16:23:53+00:00Added an answer on May 21, 2026 at 4:23 pm

    An implementation example in Mathematica:

    enter image description here

    But Dilation[ ] also accepts a structuring kernel:

    enter image description here

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

Sidebar

Related Questions

If I have a template definition like the one below, can someone provide a
How can I get the numbers of elements in a macro definition like this:
It seems like it should be so simple, but I simply cannot get this
I read somewhere that in C++ you can't give a definition like: int& a;
i have a definition like : define('LIBRARIES_URI', get_template_directory_uri() . '/libraries/'); Now, i have an
I have a definition like this def bar(self, foo=None, bar=None, baz=None): pass I want
Given a simple C# class definition like: [System.Windows.Markup.ContentProperty(PropertyOne)] public class SimpleBase { public string
When compiling a c file that uses old style function definition like int foo(a)
If I have a service definition/implementation like this: using System; using System.ServiceModel; namespace aspace.service
I'd like a defintion list that looks like: term 1 definition 1 term 2

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.