Returns a clone of this FHT.
()
| 637 | |
| 638 | /** Returns a clone of this FHT. */ |
| 639 | public FHT getCopy() { |
| 640 | ImageProcessor ip = super.duplicate(); |
| 641 | FHT fht = new FHT(ip); |
| 642 | fht.isFrequencyDomain = isFrequencyDomain; |
| 643 | fht.quadrantSwapNeeded = quadrantSwapNeeded; |
| 644 | fht.rgb = rgb; |
| 645 | fht.originalWidth = originalWidth; |
| 646 | fht.originalHeight = originalHeight; |
| 647 | fht.originalBitDepth = originalBitDepth; |
| 648 | fht.originalColorModel = originalColorModel; |
| 649 | fht.powerSpectrumMean = powerSpectrumMean; |
| 650 | return fht; |
| 651 | } |
| 652 | |
| 653 | public static boolean isPowerOf2(int n) { |
| 654 | int i=2; |
no test coverage detected