POV-Ray : Newsgroups : povray.binaries.images : 2D Fourier Transform : 2D Fourier Transform Server Time
24 Apr 2024 17:10:05 EDT (-0400)
  2D Fourier Transform  
From: Bald Eagle
Date: 6 Mar 2017 08:10:01
Message: <web.58bd5ea376ca50b7c437ac910@news.povray.org>
After spending more than a few hours over the weekend pulling my hair out,  I've
managed to get some barely working code for a 2D transform.

Paul Bourke's source code uses "bitwise right shift" - and I don't see any
equivalent to that currently available in SDL.
Am I wrong in thinking that a bitwise right shift is just a numerical division
by 2?

I had some problems with variables in my loops - is there a limit to how many
times a variable name can be used in nested loops / includes / macros / etc?
I kept getting a "cannot assign uninitialized identifier" error when using
#local, and then "cannot pass uninitialized identifier to LValue (whatever that
is)" when using #declare.

I (sort of) fixed it - but I only needed to recode about half of the instances
of this to get the full code to work - the latter half using #local works just
fine.
Very strange.
I will post code later to illustrate.

Working on this raised many questions, that I will ask later, perhaps in
(an)other thread(s).


Post a reply to this message


Attachments:
Download '2d_fft_test_2.png' (239 KB)

Preview of image '2d_fft_test_2.png'
2d_fft_test_2.png


 

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.