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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T17:28:55+00:00 2026-06-16T17:28:55+00:00

I am trying to apply Noise reduction algorithm using HTML5 canvas. I read the

  • 0

I am trying to apply Noise reduction algorithm using HTML5 canvas. I read the median algorithm on http://blog.kleinproject.org/?p=588 . It says find the median of the all the neighboring pixels of each pixel and replace that pixel value with that median value. According to that algorithm if we have the following matrix of neighboring pixels for a pixel having value 200

82 81 82
81 200 83
80 83 84

It will have ordered list like

80 81 81 82 82 83 83 84 200

and median will be 82. So replace 200 with 82 which will give

82 81 82
81 82 83
80 83 84

HTML5 canvas treats each pixel value as RGBA components. There is no single value for a pixel. Now what value should I choose while applying this algorithm . Should it be the average of all three RGB values or is there any other function to map to a single value?

  • 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-16T17:28:57+00:00Added an answer on June 16, 2026 at 5:28 pm

    When dealing with RGB values, you will need to calculate the median for each colour component and replace it in the corresponding colour component of the final RGB value accordingly. This is true for any colour image (or rather pixel with RGB representation) and not just HTML 5 canvas elements. The article you have linked to has stated the same explicitly (though in a slightly different context).

    For the case of color images, the transformation above must be applied to the matrices R, G and B that compose each image.

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

Sidebar

Related Questions

Im trying to apply the patch here, I's saving it as xLoader.patch http://gitorious.org/x-load-omap3/mainline/commit/ee120c894c3377054bda149748eb0621f2f843c8?format=patch It
I am trying to apply Mike Chen's answer here , using SDK 3.0. In
I am trying to apply brightness/contrast on a image using track bar, since applying
im trying to apply text wrap to td (table data) using: .gvUpdatesStyle .updateSummary {width:200px;
I'm trying to apply texture to a sprite using opengl as follows: int[] textures=new
GOAL: I'm trying to apply a Like button to my blog - this is
i am trying to apply SURF algorithm, which is the algo to find the
Im trying to apply different background color to even and odd items in a
im trying to apply this JSON code to my Google Map: [ { stylers:
I'm trying to apply border-radius effect on a particular div. The code I used

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.