
Rotation of the FFT of a complex wave coming from MatrixOP

alchymoon
FFT/Z/OUT=3/DEST=Image_FFT Image
MatrixOP/O Image_FFT=FFT(Image,3)
Is there any way I could tune the MatrixOP command to rotate the FFT and give a result similar to
FFT/OUT=3/DEST=Image_FFT Image
(lacks the /Z).
if you use opt=2 in the above you should get the same results.
A.G.
WaveMetrics, Inc.
July 17, 2015 at 02:29 pm - Permalink
The help for FFT states:
/Z Disables rotation of the FFT of a complex wave. Igor normally rotates the FFT result (which is also complex) by N/2 so that x=0 is at the center point (N/2). When /Z is specified, Igor does not perform this rotation and leaves x=0 at the first point (0).
July 17, 2015 at 02:44 pm - Permalink
I'm not sure which option you want so is my example:
... and you may also want to take a quick look at ImageTransform with the keyword swap.
I hope this helps,
A.G.
WaveMetrics, Inc.
July 17, 2015 at 05:19 pm - Permalink
July 20, 2015 at 07:42 am - Permalink
1. note that the opt paramter is a binary flag.
2. If you are going to use MatrixOP, it is inefficient to split execution into multiple instructions as you have done above. Instead, combine into a single instruction:
This saves you at least one allocation compared with two separate MatrixOP calls.
A.G.
WaveMetrics, Inc.
July 20, 2015 at 10:24 am - Permalink