public class ConservativeSmoothing extends java.lang.Object implements IApplyInPlace
Conservative smoothing is a noise reduction technique that derives its name from the fact that it employs a simple, fast filtering algorithm that sacrifices noise suppression power in order to preserve the high spatial frequency detail (e.g. sharp edges) in an image. It is explicitly designed to remove noise spikes --- i.e. isolated pixels of exceptionally low or high pixel intensity (e.g. salt and pepper noise).
| Constructor and Description |
|---|
ConservativeSmoothing()
Initialize a new instance of the ConservativeSmoothing class.
|
ConservativeSmoothing(int radius)
Initialize a new instance of the ConservativeSmoothing class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
applyInPlace(FastBitmap fastBitmap)
Apply filter to an image.
|
int |
getRadius()
Get Radius.
|
void |
setRadius(int radius)
Set Radius.
|
public ConservativeSmoothing()
public ConservativeSmoothing(int radius)
radius - Radius.public int getRadius()
public void setRadius(int radius)
radius - Radius.public void applyInPlace(FastBitmap fastBitmap)
IApplyInPlaceapplyInPlace in interface IApplyInPlacefastBitmap - Image to be processed.