Catalano.Imaging.Filters.Photometric
Class SingleScaleRetinex
- java.lang.Object
-
- Catalano.Imaging.Filters.Photometric.SingleScaleRetinex
-
- All Implemented Interfaces:
- IPhotometricFilter, IApplyInPlace
public class SingleScaleRetinex extends java.lang.Object implements IPhotometricFilter
Single scale retinex.
-
-
Constructor Summary
Constructors Constructor and Description SingleScaleRetinex()Initializes a new instance of the SingleScaleRetinex class.SingleScaleRetinex(double scale)Initializes a new instance of the SingleScaleRetinex class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidapplyInPlace(FastBitmap fastBitmap)Apply filter to an image.doublegetScale()Get scale.double[][]Process(double[][] image, boolean normalize)Process the image.voidsetScale(double scale)Set scale.
-
-
-
Constructor Detail
-
SingleScaleRetinex
public SingleScaleRetinex()
Initializes a new instance of the SingleScaleRetinex class.
Default:
Scale = 15
-
SingleScaleRetinex
public SingleScaleRetinex(double scale)
Initializes a new instance of the SingleScaleRetinex class.- Parameters:
scale- Scale.
-
-
Method Detail
-
getScale
public double getScale()
Get scale.- Returns:
- Scale.
-
setScale
public void setScale(double scale)
Set scale.- Parameters:
scale- Scale.
-
applyInPlace
public void applyInPlace(FastBitmap fastBitmap)
Description copied from interface:IApplyInPlaceApply filter to an image.- Specified by:
applyInPlacein interfaceIPhotometricFilter- Specified by:
applyInPlacein interfaceIApplyInPlace- Parameters:
fastBitmap- Image to be processed.
-
Process
public double[][] Process(double[][] image, boolean normalize)Process the image.- Parameters:
image- Image in matrix.normalize- Normalize the image[0..255].- Returns:
- The response of the filter.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG