Object

toolkit.filtering.whitening

WhiteningFilter

Related Doc: package whitening

Permalink

object WhiteningFilter extends MatlabFunctions with libcog.Logarithm

A whitening filter for natural images that flattens the spectrum (on average).

This uses the fact that natural images have an amplitude spectrum of 1/f, so this is essentially a filter with the inverse spectrum. The algorithm is from Bruno Olshausen:

http://redwood.berkeley.edu/bruno/npb261b/lab2/lab2.html

Linear Supertypes
Logarithm, MatlabFunctions, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. WhiteningFilter
  2. Logarithm
  3. MatlabFunctions
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val KernelSize: Int

    Permalink
  5. val MinImageSize: Int

    Permalink
  6. def apply(imageShape: libcog.Shape, frequencyDomain: Boolean = false): libcog.ScalarField

    Permalink

    Create a whitening filter for a natural image.

    Create a whitening filter for a natural image.

    Note that we clip this filter to 13 x 13 because normalized convolution (which we would like for whitening) isn't yet implemented for larger filters.

    TODO: Stop clipping whitening filter when FFT with zero expansion is supported XXX

    imageShape

    Shape of the image.

    frequencyDomain

    True if the returned filter should be in the frequency domain, false if in the space domain (default).

    returns

    A natural whitening filter (spatial), that's smaller than the smallest dimension of the image.

  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def cart2pol(fx: libcog.Matrix, fy: libcog.Matrix): (libcog.Matrix, libcog.Matrix)

    Permalink
    Definition Classes
    MatlabFunctions
  9. def clipLastColumn(m: libcog.Matrix): libcog.Matrix

    Permalink

    Clip off last column of matrix m.

    Clip off last column of matrix m.

    Definition Classes
    MatlabFunctions
  10. def clipLastRow(m: libcog.Matrix): libcog.Matrix

    Permalink

    Clip off last row of matrix m.

    Clip off last row of matrix m.

    Definition Classes
    MatlabFunctions
  11. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. def concat(left: libcog.Vector, right: libcog.Vector): libcog.Matrix

    Permalink
    Definition Classes
    MatlabFunctions
  13. def concat(left: libcog.Matrix, right: libcog.Matrix): libcog.Matrix

    Permalink

    Matlab's side-by-side matrix concatenation operator.

    Matlab's side-by-side matrix concatenation operator.

    Definition Classes
    MatlabFunctions
  14. def conv2(a: libcog.Matrix, b: libcog.Matrix, shape: String = "full"): libcog.Matrix

    Permalink

    Does a convolution of two matrices.

    Does a convolution of two matrices.

    a

    Image to be convolved.

    b

    Convolution filter.

    shape

    "full", "same", or "valid"

    Definition Classes
    MatlabFunctions
  15. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  17. def fftshift(v: libcog.Vector): libcog.Vector

    Permalink
    Definition Classes
    MatlabFunctions
  18. def fftshift(m: libcog.Matrix): libcog.Matrix

    Permalink
    Definition Classes
    MatlabFunctions
  19. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. def fliplr(m: libcog.Matrix): libcog.Matrix

    Permalink

    Matlab's fliplr operator.

    Matlab's fliplr operator.

    Definition Classes
    MatlabFunctions
  21. def flipud(m: libcog.Matrix): libcog.Matrix

    Permalink

    Matlab's flipup operator.

    Matlab's flipup operator.

    Definition Classes
    MatlabFunctions
  22. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  23. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  24. def ifftshift(v: libcog.Vector): libcog.Vector

    Permalink
    Definition Classes
    MatlabFunctions
  25. def ifftshift(m: libcog.Matrix): libcog.Matrix

    Permalink
    Definition Classes
    MatlabFunctions
  26. def indexRange(first: Int, step: Int, last: Int): libcog.Vector

    Permalink
    Definition Classes
    MatlabFunctions
  27. def indexRange(first: Int, last: Int): libcog.Vector

    Permalink
    Definition Classes
    MatlabFunctions
  28. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  29. def isPowerOf2(value: Float): Boolean

    Permalink
    Definition Classes
    Logarithm
  30. def linspace(low: Float, high: Float, points: Int = 100): libcog.Matrix

    Permalink

    Matlab spec says this produces a "row vector", which is a matrix with a single row in Cog.

    Matlab spec says this produces a "row vector", which is a matrix with a single row in Cog.

    Definition Classes
    MatlabFunctions
  31. def log2(value: Float): Float

    Permalink
    Definition Classes
    Logarithm
  32. def meshgrid(xDomain: libcog.Vector, yDomain: libcog.Vector): (libcog.Matrix, libcog.Matrix)

    Permalink
    Definition Classes
    MatlabFunctions
  33. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  34. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  35. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  36. def ones(rows: Int, columns: Int): libcog.Matrix

    Permalink
    Definition Classes
    MatlabFunctions
  37. def polyval(coefficients: libcog.Vector, element: Float): Float

    Permalink
    Definition Classes
    MatlabFunctions
  38. def polyval(coefficients: libcog.Vector, elements: libcog.Vector): libcog.Vector

    Permalink
    Definition Classes
    MatlabFunctions
  39. def polyval(coefficients: libcog.Vector, elements: libcog.Matrix): libcog.Matrix

    Permalink
    Definition Classes
    MatlabFunctions
  40. def repmat(matrix: libcog.Matrix, rowRep: Int, colRep: Int): libcog.Matrix

    Permalink

    Implement Matlab's repmat.

    Implement Matlab's repmat.

    matrix

    Matrix to be replicated.

    rowRep

    Row replication factor.

    colRep

    Column replication factor.

    Definition Classes
    MatlabFunctions
  41. def rot90(v: libcog.Vector, factor: Int): libcog.Matrix

    Permalink
    Definition Classes
    MatlabFunctions
  42. def rot90(v: libcog.Vector): libcog.Matrix

    Permalink
    Definition Classes
    MatlabFunctions
  43. def rot90(m: libcog.Matrix, factor: Int): libcog.Matrix

    Permalink
    Definition Classes
    MatlabFunctions
  44. def rot90(m: libcog.Matrix): libcog.Matrix

    Permalink
    Definition Classes
    MatlabFunctions
  45. def roundDownPowerOf2(value: Float): Int

    Permalink
    Definition Classes
    Logarithm
  46. def roundUpPowerOf2(value: Float): Int

    Permalink
    Definition Classes
    Logarithm
  47. def stack(top: libcog.Matrix, bottom: libcog.Matrix): libcog.Matrix

    Permalink

    Matlab's top-on-bottom matrix concatenation operator.

    Matlab's top-on-bottom matrix concatenation operator.

    Definition Classes
    MatlabFunctions
  48. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  49. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  50. def tril(m: libcog.Matrix): libcog.Matrix

    Permalink

    Lower triangular part of (square) matrix.

    Lower triangular part of (square) matrix.

    Definition Classes
    MatlabFunctions
  51. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  52. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  53. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Logarithm

Inherited from MatlabFunctions

Inherited from AnyRef

Inherited from Any

Ungrouped