Packages

o

geotrellis.raster.equalization

HistogramEqualization

object HistogramEqualization

Uses the approach given here: http://www.math.uci.edu/icamp/courses/math77c/demos/hist_eq.pdf

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. HistogramEqualization
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. def apply[T <: AnyVal](tile: MultibandTile, histograms: Seq[histogram.Histogram[T]]): MultibandTile

    Given a MultibandTile and a geotrellis.raster.histogram.Histogram for each of its bands, return a MultibandTile whose bands all have equalized histograms.

    Given a MultibandTile and a geotrellis.raster.histogram.Histogram for each of its bands, return a MultibandTile whose bands all have equalized histograms.

    tile

    A multiband tile

    histograms

    A sequence of histograms, one for each band

    returns

    A multiband tile with improved contrast

  2. def apply(tile: MultibandTile): MultibandTile

    Given a MultibandTile, return a MultibandTile whose bands all have equalized histograms.

    Given a MultibandTile, return a MultibandTile whose bands all have equalized histograms.

    tile

    A multiband tile

    returns

    A multiband tile with improved contrast

  3. def apply[T <: AnyVal](tile: Tile, histogram: histogram.Histogram[T]): Tile

    Given a Tile and a geotrellis.raster.histogram.Histogram, return a Tile with an equalized histogram.

    Given a Tile and a geotrellis.raster.histogram.Histogram, return a Tile with an equalized histogram.

    tile

    A singleband tile

    histogram

    The histogram of the tile

    returns

    A singleband tile with improved contrast

  4. def apply(tile: Tile): Tile

    Given a Tile, return a Tile with an equalized histogram.

    Given a Tile, return a Tile with an equalized histogram.

    tile

    A singleband tile

    returns

    A singleband tile with improved contrast

  5. def intensityToCdf(cellType: CellType, cdf: Array[(Double, Double)])(x: Double): Double

    Given a CellType and a CDF, this function produces a function that takes an intensity x to CDF(x).

    Given a CellType and a CDF, this function produces a function that takes an intensity x to CDF(x).

    cellType

    The CellType in which the intensity x is given

    cdf

    The CDF

    x

    An intensity value which is mapped to CDF(x) by the returned function

    returns

    A function from Double => Double which maps x to CDF(x)

    Annotations
    @inline()
  6. def toIntensity(cellType: CellType, x: Double): Double

    Given a CellType and an intensity value in the unit interval, this function returns an corresponding intensity value appropriately scaled for the given cell type.

    Given a CellType and an intensity value in the unit interval, this function returns an corresponding intensity value appropriately scaled for the given cell type.

    Annotations
    @inline()