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

  • Home
  • SEARCH
  • 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 7958201
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T04:23:04+00:00 2026-06-04T04:23:04+00:00

Hard to explain the problem in the title, so please read on. I have

  • 0

Hard to explain the problem in the title, so please read on.

I have a project where we are implementing a sobel filter. At first, the image didn’t work as it should do, with the sobel calculations

Gx <= ("000" & p3-p1)+(("00" & p6 & '0')-("00" & p4 & '0'))+("000" & p9-p7);
Gy <= ("000" & p7-p1)+(("00" & p8 & '0')-("00" & p2 & '0'))+("000" & p9-p3);

but with the same calulation expressed in a different way

Gx <= ("000" & p3)+("00" & p6 & '0')+("000" & p9)-("000" & p1)-("00" & p4 & '0')-("000"
 & p7);
Gy <= ("000" & p7)+("00" & p8 & '0')+("000" & p9)-("000" & p1)-("00" & p2 & '0')-("000"
 & p3);

it worked perfectly. Still, the simulations of the filter alone is exactly the same.
Has it something to do with how I pad the zeroes before the vectors?

  • 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-04T04:23:04+00:00Added an answer on June 4, 2026 at 4:23 am

    Without knowing the data types I’m not completely sure if this is the cause, but my guess would be that if p1 > p3 (and some of the other ones too) you’ll get different results from the two types of calculations. Pseudo-code example:

    p1 = "010";
    p3 = "001";
    
    --Method1:
    res = "000" & p3-p1 = "000" & "111" = "000111";
    
    
    --Method2
    res = ("000" & p3) - ("000" & p1) = "000001" - "000010" = "111111";
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a problem that is a little hard to explain. I am building
This is a problem which is hard to explain in words, though I have
This question is hard to explain so please bear with me. I have a
This problem is going to be hard for me to explain but I will
Kinda hard to explain, but i'll try. I have a datalist that is populated
The situation is a bit hard to explain, I'll do my best. I have
It's quite hard to explain in question title, however what I want to achieve
Here's a problem that is kinda hard to explain. So here's an example. Let's
It's hard to explain in a single line, my problem is that I need
I know the title makes little sense, mostly because it's hard to explain 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.