Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

sine function

i want to get a window function which is

define PI 3.14159265358979323846264338327950288419716939937510582097494459230781640628620899

window function = sin(pixel / (image width - 1) * PI)^2

However, when i tried to do it, the left side of '^' can not be double type. Is there any suggestion for this situation?

Also the function means hann window i guess. Is there any window function which can use from library like that equation??

sine function

i want to get a window function which is

define
#define PI 3.14159265358979323846264338327950288419716939937510582097494459230781640628620899

3.141592653 window function = sin(pixel / (image width - 1) * PI)^2

PI)^2

However, when i tried to do it, the left side of '^' can not be double type. Is there any suggestion for this situation?

Also the function means hann window i guess. Is there any window function which can use from library like that equation??