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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T07:43:51+00:00 2026-06-15T07:43:51+00:00

I read on Wikipedia and see that if we need to perform spatial filtering

  • 0

I read on Wikipedia and see that if we need to perform spatial filtering on an image, we have to have a filter, for example 3×3, what I don’t understand here is how can we choose the value for the filter? Let say that the original image is grey scale so its intensity goes from 0 to 255 (8 bits).

Another question is that if the image is 9×9, how can we apply the filter to boundary pixels of that image? If we choose to pad the image so the filter can work with all boundary pixels, what would be the value for new padded pixels?

Thank you very much

  • 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-15T07:43:52+00:00Added an answer on June 15, 2026 at 7:43 am

    The value of the filter depends on what you want to achieve by filtering. There are a lot of filter design to perform a specific task. For example the simplest filter f=[-1 1 -1] kind of perform image derivation by performing first degree differencing on each pixel in horizontal direction (x-derivative) while f’ perform the same thing in the vertical (y-derivative). The values -1,1,-1 are choose for such purpose. The same goes for 3*3 filters. In general the choose of the values come from a 2D(bi directional) designing of finite impulse response (FIR) and infinite impulse response (IIR) filters.

    You should keep in mind that the value of filter operation on the boarders are not that much accurate. Filtering operation for boarder pixel are done interpolating out-of range pixel by a process called boarder interpolation.In OpenCV and similar image processing/computer vision libraries there are ways to do it. For example as the following in opencv

    Various border types, image boundaries are denoted with ‘|’

    • BORDER_REPLICATE: aaaaaa|abcdefgh|hhhhhhh
    • BORDER_REFLECT: fedcba|abcdefgh|hgfedcb
    • BORDER_REFLECT_101: gfedcb|abcdefgh|gfedcba
    • BORDER_WRAP: cdefgh|abcdefgh|abcdefg
    • BORDER_CONSTANT: iiiiii|abcdefgh|iiiiiii with some specified ‘i’

    Thus according to you choose you pad the boarder pixels.

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

Sidebar

Related Questions

I have read the explanation in http://en.wikipedia.org/wiki/PageRank and i understand that the page rank
I have read about LDAP on wikipedia and I kind of understand what it
I have read in wikipedia that Decorator pattern is used for .Net and Java
From the Wikipedia article on Read-Copy-Update : The reason that it is safe to
I've read in Wikipedia that neural-network functions defined on a field of arbitrary real/rational
I've read the decorator design pattern from Wikipedia, and code example from this site
I have written a small little script that looks up a work on wikipedia
I have read through other questions on this site - using the example answer
I read the Wikipedia article about md5 hashes but I still can't understand how
I have read a lot about projective geometry and cross ratio, but I don´t

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.