Catalano.Imaging.Filters
Class SaltAndPepperNoise
- java.lang.Object
-
- Catalano.Imaging.Filters.SaltAndPepperNoise
-
- All Implemented Interfaces:
- IApplyInPlace
public class SaltAndPepperNoise extends java.lang.Object implements IApplyInPlace
Salt and pepper noise.
The filter adds random salt and pepper noise - sets maximum or minimum values to randomly selected pixels.
-
-
Constructor Summary
Constructors Constructor and Description SaltAndPepperNoise()Initializes a new instance of the OtsuThreshold class.SaltAndPepperNoise(int noiseAmount)Initializes a new instance of the OtsuThreshold class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidapplyInPlace(FastBitmap fastBitmap)Apply filter to an image.
-
-
-
Constructor Detail
-
SaltAndPepperNoise
public SaltAndPepperNoise()
Initializes a new instance of the OtsuThreshold class.
-
SaltAndPepperNoise
public SaltAndPepperNoise(int noiseAmount)
Initializes a new instance of the OtsuThreshold class.- Parameters:
noiseAmount- Amount of noise to generate in percents, [0, 100].
-
-
Method Detail
-
applyInPlace
public void applyInPlace(FastBitmap fastBitmap)
Description copied from interface:IApplyInPlaceApply filter to an image.- Specified by:
applyInPlacein interfaceIApplyInPlace- Parameters:
fastBitmap- Image to be processed.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG