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
- Alphabetic
- By Inheritance
- IntCachedColorMap
- ColorMap
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
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
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
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
- IntCachedColorMap → ColorMap
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
val
colors: Vector[Int]
- Definition Classes
- IntCachedColorMap → ColorMap
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
lazy val
grey: Boolean
- Definition Classes
- ColorMap
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
map(z: Int): Int
- Definition Classes
- IntCachedColorMap → ColorMap
-
def
mapColors(f: (Int) ⇒ Int): ColorMap
- Definition Classes
- IntCachedColorMap → ColorMap
-
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
- IntCachedColorMap → ColorMap
-
def
mapDouble(z: Double): Int
- Definition Classes
- IntCachedColorMap → ColorMap
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val noDataColor: Int
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
lazy val
opaque: Boolean
- Definition Classes
- ColorMap
-
val
options: Options
- Definition Classes
- IntCachedColorMap → ColorMap
-
def
render(tile: Tile): Tile
- Definition Classes
- ColorMap
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
withBoundaryType(classBoundaryType: ClassBoundaryType): ColorMap
- Definition Classes
- IntCachedColorMap → ColorMap
-
def
withFallbackColor(color: Int): ColorMap
- Definition Classes
- IntCachedColorMap → ColorMap
-
def
withNoDataColor(color: Int): ColorMap
- Definition Classes
- IntCachedColorMap → ColorMap