MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / powerOf2Size

Method powerOf2Size

ij/src/main/java/ij/process/FHT.java:60–64  ·  view source on GitHub ↗

Returns true of this FHT contains a square image with a width that is a power of two.

()

Source from the content-addressed store, hash-verified

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. */

Callers 2

doMathMethod · 0.95
transformMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected