Returns true of this FHT contains a square image with a width that is a power of two.
()
| 58 | |
| 59 | /** Returns true of this FHT contains a square image with a width that is a power of two. */ |
| 60 | public boolean powerOf2Size() { |
| 61 | int i=2; |
| 62 | while(i<width) i *= 2; |
| 63 | return i==width && width==height; |
| 64 | } |
| 65 | |
| 66 | /** Performs a forward transform, converting this image into the frequency domain. |
| 67 | The image contained in this FHT must be square and its width must be a power of 2. */ |