c

geotrellis.raster.render

IntCachedColorMap

class IntCachedColorMap extends ColorMap

Caches a color ramp based on a histogram of values. This is an optimization, since often times we create a histogram while classifying, and can reuse that computed information in the color mapping.

In order for this class to work correctly the histogram acts as a map from values to their colors and must contain a value for each pixel value that we expect to encounter.

The performance benefit is eC lookup cost instead of Log provided by IntColorMap

Linear Supertypes
ColorMap, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. IntCachedColorMap
  2. ColorMap
  3. Serializable
  4. Serializable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new IntCachedColorMap(colors: Vector[Int], h: histogram.Histogram[Int], options: Options)

    colors

    All color values that can be encountered

    h

    Histogram where counts of values have been replaced cached RGBA color

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def breaksString: String

    Retrieve a "breaks string" from ColorMap data.

    Retrieve a "breaks string" from ColorMap data. The opposite of the ColorMap.fromString methods.

    Definition Classes
    IntCachedColorMapColorMap
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  7. val colors: Vector[Int]
    Definition Classes
    IntCachedColorMapColorMap
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. lazy val grey: Boolean
    Definition Classes
    ColorMap
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. def map(z: Int): Int
    Definition Classes
    IntCachedColorMapColorMap
  16. def mapColors(f: (Int) ⇒ Int): ColorMap
    Definition Classes
    IntCachedColorMapColorMap
  17. def mapColorsToIndex(): ColorMap

    Maps each color value to its index in the colors sequence.

    Maps each color value to its index in the colors sequence. This is useful for table lookup encodings (ex: geotrellis.raster.render.png.IndexedPngEncoding)

    Definition Classes
    IntCachedColorMapColorMap
  18. def mapDouble(z: Double): Int
    Definition Classes
    IntCachedColorMapColorMap
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. val noDataColor: Int
  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. lazy val opaque: Boolean
    Definition Classes
    ColorMap
  24. val options: Options
    Definition Classes
    IntCachedColorMapColorMap
  25. def render(tile: Tile): Tile
    Definition Classes
    ColorMap
  26. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  27. def toString(): String
    Definition Classes
    AnyRef → Any
  28. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  31. def withBoundaryType(classBoundaryType: ClassBoundaryType): ColorMap
    Definition Classes
    IntCachedColorMapColorMap
  32. def withFallbackColor(color: Int): ColorMap
    Definition Classes
    IntCachedColorMapColorMap
  33. def withNoDataColor(color: Int): ColorMap
    Definition Classes
    IntCachedColorMapColorMap

Inherited from ColorMap

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped