Page 1 of 1

Image width and height should be power of 2

PostPosted: Tue Dec 05, 2017 7:56 am
by Mixee
Hello,

I'm using the latest version of AForge.Math.

I've tried to do a Fourier transform on binarized image, but I don't understand how 1352x1352 is not a power of 2?

Is it too big or something? Or shouldn't I use the .bmp file? Or is it just a bug?

powerof2.png
Screen
powerof2.png (26.36 KiB) Viewed 4916 times


Thanks in advance for information.

Re: Image width and height should be power of 2

PostPosted: Tue Dec 05, 2017 9:41 am
by andrew.kirillov
Hello,

Mixee wrote:but I don't understand how 1352x1352 is not a power of 2?

Well, you know what "power of 2" means, right? It is 2^n. Some examples: 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, etc.