object HistogramEqualization
Uses the approach given here: http://www.math.uci.edu/icamp/courses/math77c/demos/hist_eq.pdf
- Alphabetic
- By Inheritance
- HistogramEqualization
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
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
-
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
-
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
-
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
-
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()
-
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()