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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T06:29:59+00:00 2026-06-15T06:29:59+00:00

I am learning about the Convolution Matrix, and I understand how they work, but

  • 0

I am learning about the Convolution Matrix, and I understand how they work, but I don’t understand how to know before hand what the output of a Matrix will look like. For example lets say I want to add a blur to an image, I could guess 10,000+ different combinations of numbers before I get the correct one.

I do know though that this formula will give me a blur effect, but I have no idea why.

float[] sharpen = new float[] {
     1/9f, 1/9f, 1/9f,
     1/9f, 1/9f, 1/9f,
     1/9f, 1/9f, 1/9f
};

Can anyone either explain to me how this works or point me to some article, that explains this? I would like to know before hand what a possible output of the matrix will be without guessing.

Basically I would like to know why do we put that number in the filed, and why not some other number?

  • 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-15T06:30:01+00:00Added an answer on June 15, 2026 at 6:30 am

    This link that explains how the convolution matrix works with a simple example.

    The reason the matrix you have in your question blurs the image is because each pixel becomes an average of all its surrounding pixels. In other words, the pixel that’s in the center of the action area has its new value equal to the following formula:

    new_value = (1/9)(top-left-neighbor)    + (1/9)(top-neighbor)    + (1/9)(top-right-neighbor) +
                (1/9)(left-neighbor)        + (1/9)(self)            + (1/9)(right-neighbor)     +
                (1/9)(bottom-left-neighbor) + (1/9)(bottom-neighbor) + (1/9)(bottom-right-neighbor)
    

    The new value is 1/9th of 9 pixels (including the original pixel value) which turns out to be an “average” value for the 3×3 square operated on by the matrix. This “average” effect creates the blur that you see after applying the matrix.

    Picking values for a convolution matrix all depends on what effect you want to achieve. Keep in mind that the matrix is applied to the original image and the new pixel value is copied over to the destination image. This means that the new values don’t factor into the application of the matrix on neighboring pixels…it’s only the original values that get fed into the matrix.

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

Sidebar

Related Questions

I'm learning about hash tables, trying to understand how they work. I'd like to
I'm learning about bit-flags. I already know how they work and how they are
I've just been learning about master pages in ASP.NET 2.0. They sound great, but
i am learning about the difference between abstract classes and interfaces, but theoretical explanations
I'm just learning about SproutCore now, seems great. But I can't find a good
I'm learning about ternary operators now. I got the basics down, but then I
im learning about propel, in documentation i found examples about WHERE/AND WHERE/IN but i
I was just learning about objects in school today and i know a function
I'm learning about JSF 2.0, I want to know if there is a tool
im learning about Ruby on Rails but i have somes questions and not find

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.