Ask Your Question
0

sine function

asked 2016-07-01 18:07:11 -0600

HiHello gravatar image

updated 2016-07-03 03:24:47 -0600

i want to get a window function which is

#define PI 3.141592653
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??

edit retag flag offensive close merge delete

Comments

^ means "xor" in c++, not "pow"

berak gravatar imageberak ( 2016-07-02 00:23:26 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-07-02 14:02:12 -0600

Tetragramm gravatar image

You're looking for the createHanningWindow function.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-07-01 18:07:11 -0600

Seen: 334 times

Last updated: Jul 03 '16