Package seamfinding

Class SeamFinderTests.RuntimeExperiments

  • Enclosing class:
    SeamFinderTests

    @Nested
    @Disabled
    class SeamFinderTests.RuntimeExperiments
    extends Object
    • Field Detail

      • MAX_SIZE

        private static final int MAX_SIZE
        Maximum image dimensions in pixels. Making this smaller means experiments run faster.
        See Also:
        Constant Field Values
      • STEP

        private static final int STEP
        Step size increment. Making this smaller means experiments run slower.
        See Also:
        Constant Field Values
      • NUM_TRIALS

        private static final int NUM_TRIALS
        Number of trials to per implementation run. Making this smaller means experiments run faster.
        See Also:
        Constant Field Values
    • Constructor Detail

      • RuntimeExperiments

        RuntimeExperiments()
    • Method Detail

      • randomPictures

        @Test
        void randomPictures()
      • randomPicture

        private Picture randomPicture​(int width,
                                      int height,
                                      SplittableRandom spRandom)
        Returns a new picture with the given width and height dimensions filled with random colors.
        Parameters:
        width - the horizontal dimension for the picture.
        height - the vertical dimension for the picture.
        spRandom - the SplittableRandom instance for generating random colors.
        Returns:
        a new picture with the given width and height dimensions filled with random colors.
        See Also:
        Fastest way to create random pixel image