Class AlgorithmBoxCount

  • All Implemented Interfaces:
    java.awt.event.ActionListener, java.awt.event.WindowListener, java.lang.Runnable, java.util.EventListener

    public class AlgorithmBoxCount
    extends AlgorithmBase
    • Field Detail

      • entireImage

        private boolean entireImage
      • createTestImage

        private boolean createTestImage
    • Constructor Detail

      • AlgorithmBoxCount

        public AlgorithmBoxCount​(ModelImage srcImg,
                                 boolean entireImage)
    • Method Detail

      • create2DRandImage

        private void create2DRandImage()
      • randcantor2D

        private byte[][] randcantor2D​(double p,
                                      int n)
        Parameters:
        p - (0
        n - must be a power of 2
        Returns:
      • boxdiv2

        private void boxdiv2​(byte[][] c,
                             double p)
      • create3DRandImage

        private void create3DRandImage()
      • randcantor3D

        private byte[][][] randcantor3D​(double p,
                                        int n)
        Parameters:
        p - (0
        n - must be a power of 2
        Returns:
      • boxdiv3

        private void boxdiv3​(byte[][][] c,
                             double p)
      • boxCount2D

        private void boxCount2D()
      • boxCount3D

        private void boxCount3D()