Package steganography.image.encoders
Class PixelIndex
- java.lang.Object
-
- steganography.image.encoders.BuffImgEncoder
-
- steganography.image.encoders.PixelBit
-
- steganography.image.encoders.PixelIndex
-
public class PixelIndex extends PixelBit
- Author:
- Henk-Joas Lubig, Selina Wernike The Pixel-Bit-Algorithm for Images using the Color-Couple-Algorithem
-
-
Field Summary
-
Fields inherited from class steganography.image.encoders.BuffImgEncoder
overlay
-
-
Constructor Summary
Constructors Constructor Description PixelIndex(PixelCoordinateOverlay overlay, java.util.Map<java.lang.Integer,java.util.List<java.lang.Integer>> colorCouple, long seed)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
changePixelValue(int pixelARGB)
Returns a new Color based on the Color Couple in the Map-
Methods inherited from class steganography.image.encoders.PixelBit
decode, encode, getNumberOfChannels, pixelIsOne, setNumberOfChannels
-
Methods inherited from class steganography.image.encoders.BuffImgEncoder
getOverlay
-
-
-
-
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 classPixelBit
- Parameters:
pixelARGB
- the pixelValue to change- Returns:
- int The new Color for that pixel
-
-