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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T02:47:48+00:00 2026-06-02T02:47:48+00:00

I have a task to implement a 3×3 x-derivative image filter that makes use

  • 0

I have a task to implement a 3×3 x-derivative image filter that makes use of central difference and performs at the same time a Gaussian smoothing in the y direction.

I have a formula for that task in the x-direction (h=1), and I am not sure whether I understand it correctly:

(f(x+h;y)-f(x-h;y)) / 2*h

Relative from my current pixel (x), I take the pixel value +1 ahead of my current pixel and subtract the value from the pixel on the position -1 behind my current pixel. Is this value divided by 2 then more or less my first order derivation in the x direction? Isn’t my actual current pixel value used at all?

  • 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-02T02:47:51+00:00Added an answer on June 2, 2026 at 2:47 am

    Traditionally for images, the center isn’t used for a derivative filter. The reasoning can be found as follows.

    1. The purpose of most image processing filters is to find things in the original image, and to identify them. Thus, a good kernel (*) will be centered at the same location as the change.
    2. The derivative should be zero meaned. If you add all of the pixels from the kernel, they should add up to zero.

    Given these two points, and especially the first one, it is evident that the kernel should have an odd number of elements, and the center should be 0. Essentially, if the kernel is odd, then it will tend to preserve the original edge.

    Taking a 1 dimensional example, and apply the formula you provided, trimming the edges (Forcing them to 0), will result as follows:

    [0  1  3  2  10  12 8 11];
    [0 -2 -1 -7 -10   2 1 0 ];
    

    Note that the two highest magnitude values are right at the peak. Try playing with other kernels, including some that don’t have the center value be 0, and see what results.

    (*) Kernel represents the function you are performing. In the case you have provided, the kernel is [1 0 -1]

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

Sidebar

Related Questions

i have just received a task to implement a software that paints over pictures
I have following task: Implement a mechanism that can take any collection of objects
My task is to implement a method that overrides the = operator. I have
I have to implement a Task subclass that gracefully fails if the broker is
I have task involving reading SAS .xpt files using .NET. For that I'm using
I have a task that requires me to delete all folders in a directory
I have task to give in my application possibility to open document that is
In one app, I have a task to create files that will be used
I have a task to implement service with behavior like this one. My question
I have been given task to check for url that site:domain (If index in

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.