<div dir="ltr"><div>Hello,</div><div><br></div><div>I made a pix_fft2 object that calculates the magnitude of the spectrum [1] based on [2] and [3]. So far, it works pretty much the same as pix_opencv_dft but I want to expand this further:<br></div><div><br></div><div>I'm making a different one, and I have problems because I want to output real an imaginary values as images. The code is in [4].<br></div><div><br></div><div>I'm following these instructions [5], but I can't wrap my head around it.</div><div><br></div><div>How would I go about sending a second gem_state (or image) via a 2nd outlet ? Are there any examples out there? What's wrong with [4]? </div><div><br></div><div>A solution for this was to output all pixels as a list, but I don't think it's very efficient and it messes around with the pixel order. </div><div><br></div><div>Thanks!</div><div><br></div><div>fede</div><div><br></div><div>[1] <a href="https://github.com/fdch/fd_lib/tree/master/pix_fft2">https://github.com/fdch/fd_lib/tree/master/pix_fft2</a></div><div>[2] how fftw works from William Brent's recent timbreID</div><div>[3] how a pix object works with Antoine Villeret's pix_opencv<br></div><div>[4] <a href="https://github.com/fdch/fd_lib/blob/master/pix_fft/pix_fft.cpp">https://github.com/fdch/fd_lib/blob/master/pix_fft/pix_fft.cpp</a><br></div><div>[5] <a href="https://lists.puredata.info/pipermail/gem-dev/2011-11/005642.html">https://lists.puredata.info/pipermail/gem-dev/2011-11/005642.html</a></div><div><div><br></div><div><br></div><div>PS: working on osx10.11.6 with Gem from deken,latest Pd.0.48.0 </div>-- <br><div class="gmail_signature"><div dir="ltr"><a href="http://fdch.github.io/tv" target="_blank">http://fdch.github.io/tv</a></div></div>
</div></div>