View Single Post
Old 19th August 2016, 12:50   #13  |  Link
vcmohan
Registered User
 
Join Date: Jul 2003
Location: India
Posts: 890
Quote:
Originally Posted by Myrsloik View Post
And can someone check this piece of code?
Code:
void pointNotchFilter2D( float * freqFilter, int* spec, int ht, int wd)
{
	// point centered notch filter
	float xf = spec[2] * wd / (NYQUIST);

	float yf = spec[3] * ht / (NYQUIST );

	int degree = 2 * spec[4];

	// calculate notch radial sqr
	float d0sq = sqrt (xf*xf + yf*yf);
	d0sq = (ht * ht + wd * wd)/ 4;
It looks very suspect. Like it should be multiplied or divided or something instead of the first value assigned to d0sq just being discarded.
Thanks for pointing out problematic code. Sorry when I uploaded the revised dll in May I missed to upload the updated source. I have done that now. Yes instead of the included lte file
the official fftw3 header can be used, but I found it to be so difficult to understand started using Fizik's lte version with suitable modifications.
As regards numerous warnings, yes I am guilty and lazy. Thankful for correcting.
__________________
mohan
my plugins are now hosted here
vcmohan is offline   Reply With Quote