Class PixelIndex


  • public class PixelIndex
    extends PixelBit
    Author:
    Henk-Joas Lubig, Selina Wernike The Pixel-Bit-Algorithm for Images using the Color-Couple-Algorithem
    • Constructor Detail

      • PixelIndex

        public PixelIndex​(PixelCoordinateOverlay overlay,
                          java.util.Map<java.lang.Integer,​java.util.List<java.lang.Integer>> colorCouple,
                          long seed)
                   throws java.lang.IllegalArgumentException
        Throws:
        java.lang.IllegalArgumentException
    • Method Detail

      • changePixelValue

        protected int changePixelValue​(int pixelARGB)
        Returns a new Color based on the Color Couple in the Map
        Overrides:
        changePixelValue in class PixelBit
        Parameters:
        pixelARGB - the pixelValue to change
        Returns:
        int The new Color for that pixel