AForge.NET

  :: AForge.NET Framework :: Articles :: Forums ::

Image width and height should be power of 2

Forum to discuss AForge.NET Framework, its features, API, how-tos, etc.

Image width and height should be power of 2

Postby Mixee » Tue Dec 05, 2017 7:56 am

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 53 times


Thanks in advance for information.
Mixee
 
Posts: 1
Joined: Tue Dec 05, 2017 7:45 am

Re: Image width and height should be power of 2

Postby andrew.kirillov » Tue Dec 05, 2017 9:41 am

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.
With best regards,
Andrew


Interested in supporting AForge.NET Framework?
User avatar
andrew.kirillov
Site Admin, AForge.NET Developer
 
Posts: 3251
Joined: Fri Jan 23, 2009 9:12 am
Location: UK




Return to AForge.NET Framework

cron