imagej / imagej-scripting

ImageJ-specific applications of the SciJava script languages
Other
25 stars 15 forks source link

Add bandpass example #20

Closed bnorthan closed 7 years ago

bnorthan commented 7 years ago

@hadim , @imagejan I think the problem @hadim had when using "bandpass" is that it expected frequency 0,0 to be in the center of the image, however the newer imglib2 FFT (which ops is based on) puts frequency 0,0 at the origin.

Also the redundant information of the real to complex transform is not kept, which means there are only half as many complex pixels in the x direction

So given that, I think this script implements bandpass... let me know if I have it right. Also there are probably more elegant ways to implement this using Views, so feel free to make suggestions on improvements.