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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:41:42+00:00 2026-06-15T23:41:42+00:00

Can anyone advise on the correct FFT to be using (Real or Complex)? I

  • 0

Can anyone advise on the correct FFT to be using (Real or Complex)? I have looked here but still have questions.

I want to do image correlation to identify the location of a sub image within a master image. I understand the basics of FFTs and iFFTs.

The plan:

  1. Perform an FFT on a master image. 512×512
  2. Take complex conjugate of sub image.
  3. Perform an FFT on the sub image. 30×30 but padded with zeros to 512×512
  4. Complex Multiply the two resulting matrixes
  5. Perform iFFT on result
  6. Even though the result should be (mostly) real, take the magnitude of resulting matrix
  7. Look for maximum value which should correspond to maximum correlation.

I am having trouble getting the results that I anticipate.

If I use the real 2d fft (vDSP_fft2dzrip), the result is in a packed format that makes it hard to use a vDSP_zvmul to multiply to two result matrixes.

If I use the complex fft (vDSP_fft2dzip), I fail to get any correlation at all.

The apple examples and most of the audio examples don’t do anything with the results of the forward FFT other than do the inverse.

Can anyone help me get started with image correlation? First question…can I use the complex FFT and avoid the packed format?

  • 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-15T23:41:43+00:00Added an answer on June 15, 2026 at 11:41 pm

    The only difference between a real and complex FFT is that the real FFT can be slightly more efficient by using a clever packing scheme that transforms a 2^n real FFT into a 2^(n-1) complex FFT. The results should be the same in both cases. So I would stick with the complex FFT for simplicity if I were you, at least until you have everything working.

    Have you also taken a look at vImageConvolve_ARGB8888? It seems to do what you are trying to do, with a lot less effort 🙂

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

Sidebar

Related Questions

Can anyone please advise where i'm going wrong with the following? I want the
Can anyone advise? I have a job which runs on the hour, every hour,
Can anyone advise on a simple way of converting a csv string to an
Can anyone advise on the appropriate SAS informat to read in a datetime (dd/mm/yyyy
Can anyone please advise me if there will be any problems changing the wordpress
Would anyone please advise how in jade for nodejs I can truncate a string
Can anyone advise on the fastest, least resource intensive method by which I can
Can anyone give advice, or point to any guides, on how to manage a
can anyone give me any advice on what to do about this error ?!
i was wondering if any one can advise me on how i can go

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.