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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T22:15:22+00:00 2026-06-11T22:15:22+00:00

I have an imaging application written in Matlab and need to convert it into

  • 0

I have an imaging application written in Matlab and need to convert it into C++ app with OpenCV. But I can’t seem to find an easy way to imitate medfilt2 with OpenCV.

I tried MedianBlur but it didn’t produce the same result. Could anybody give me any clue for this task?

  • 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-11T22:15:23+00:00Added an answer on June 11, 2026 at 10:15 pm

    It would appear to me that this link should have what you need.
    However, looks like you’ll have to make a minor modification if you want to specify the n by m window.

         //   Pick up window elements
         int k = 0;
         // Original: element window[9];
         element window[n_win*m_win];
         for (int j = m_win - 1; j < m_win; ++j)
            for (int i = n_win - 1; i < n_win; ++i)
               window[k++] = image[j * N + i];
         //   Order elements (only half of them)
         // make sure (n_win*m_win)/2 is odd :-)
         for (int j = 0; j < (n_win*m_win)/2; ++j)
         {
            //   Find position of minimum element
            int min = j;
            for (int l = j + 1; l < n_win*m_win; ++l)
            if (window[l] < window[min])
               min = l;
            //   Put found minimum element in its place
            const element temp = window[j];
            window[j] = window[min];
            window[min] = temp;
         }
         //   Get result - the middle element
         result[(m - 1) * (N - 2) + n - 1] = window[4];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an application, currently written in C#, which can take a Base64-encoded string
I have written an Qt application. On Windows 7 x64/x32 app work's fine. On
Imagine you have a web application written in Django and Python 2.65, and MySQL
I have written a small Python application where I use PyGame for displaying some
For a course imaging processing I am building a Matlab/C++ application. Matlab should recognize
I have a Windows application written in Progress. I'm working with version 10.1C. I
Background: In my application written in C++, I have created 3 threads: AnalysisThread (or
I have a server-client application, i want to get a Screen Shot from server,but
I have written an application which loads information from a plist which lies on
I am trying to integrate iTextSharp into an existing Document Imaging application that allows

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.