Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FastBilateral ¶
type FastBilateral struct { Image image.Image SigmaRange float64 SigmaSpace float64 // contains filtered or unexported fields }
A FastBilateral filter is a non-linear, edge-preserving and noise-reducing smoothing filter for images. The intensity value at each pixel in an image is replaced by a weighted average of intensity values from nearby pixels.
func Auto ¶
func Auto(m image.Image) *FastBilateral
Auto instanciates a new FastBilateral with automatic sigma values.
func New ¶
func New(m image.Image, sigmaSpace, sigmaRange float64) *FastBilateral
New instanciates a new FastBilateral.
func (*FastBilateral) At ¶
func (f *FastBilateral) At(x, y int) color.Color
At computes the interpolation and returns the filtered color at the given coordinates.
func (*FastBilateral) Bounds ¶
func (f *FastBilateral) Bounds() image.Rectangle
Bounds implements image.Image interface.
func (*FastBilateral) ColorModel ¶
func (f *FastBilateral) ColorModel() color.Model
ColorModel returns the Image's color model.
func (*FastBilateral) Execute ¶
func (f *FastBilateral) Execute()
Execute runs the bilateral filter.
func (*FastBilateral) ResultImage ¶
func (f *FastBilateral) ResultImage() image.Image
ResultImage computes the interpolation and returns the filtered image.
Click to show internal directories.
Click to hide internal directories.