Class AlgorithmBoxCount

java.lang.Object
java.lang.Thread
gov.nih.mipav.model.algorithms.AlgorithmBase
gov.nih.mipav.model.algorithms.AlgorithmBoxCount
All Implemented Interfaces:
ActionListener, WindowListener, Runnable, EventListener

public class AlgorithmBoxCount extends AlgorithmBase
  • Field Details

    • entireImage

      private boolean entireImage
    • createTestImage

      private boolean createTestImage
    • randomGen

      RandomNumberGen randomGen
  • Constructor Details

    • AlgorithmBoxCount

      public AlgorithmBoxCount(ModelImage srcImg, boolean entireImage)
  • Method Details

    • runAlgorithm

      public void runAlgorithm()
      Starts the program.
      Specified by:
      runAlgorithm in class AlgorithmBase
    • create2DRandImage

      private void create2DRandImage()
    • randcantor2D

      private byte[][] randcantor2D(double p, int n)
      Parameters:
      p - (0 invalid input: '<' p invalid input: '<' 1)
      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 invalid input: '<' p invalid input: '<' 1)
      n - must be a power of 2
      Returns:
    • boxdiv3

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

      private void boxCount2D()
    • boxCount3D

      private void boxCount3D()