Login  Register

Generate new image with Sine waves

Posted by mmettlen on Feb 05, 2021; 11:32am
URL: http://imagej.273.s1.nabble.com/Generate-new-image-with-Sine-waves-tp5024437.html

Hi, for educational purposes, I'd like to write a macro that allows the
following:
- Generate a new image of dimensions xy
- Fill that image with a 2D sine wave after the user specifies the Miller
indices h and k (i.e. the direction of the sine wave), it's amplitude A and
it's phase.
- Add to the above sine wave a new sine wave with new h, k, A and phase...
- Repeat above addition....

Point of that macro is to visualize how waves add to create interference.
Any help would be much appreciated! Thx! Marcel




--
Sent from: http://imagej.1557.x6.nabble.com/

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html