# NumberMap class

Namespace: [Grasshopper2.Imaging](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.imaging.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public sealed class NumberMap
```

Represents an immutable rectangular grid of number values. Ie. a bitmap with double precision numbers instead of colours.

## Constructors

- [NumberMap](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.numbermap/ctor.md): (2 overloads) Create a new map.

## Properties

- [Constant](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.numbermap/constant.md): Gets the constant value of this map. If IsConstant is not true, this value is meaningless.
- [Count](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.numbermap/count.md): Gets the total number of entries in this map.
- [Height](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.numbermap/height.md): Gets the height of the map. If the Height equals zero, it implied this map only contains a single value.
- [InfinityCount](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.numbermap/infinitycount.md): Gets the number of infinite values in this map.
- [IsConstant](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.numbermap/isconstant.md): Gets whether this map contains only a single value.
- [Maximum](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.numbermap/maximum.md): Gets the highest value in this map. NaNs are ignored in this test.
- [Minimum](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.numbermap/minimum.md): Gets the lowest value in this map. NaNs are ignored in this test.
- [NanCount](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.numbermap/nancount.md): Gets the number of nan values in this map.
- [NegativeInfinityCount](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.numbermap/negativeinfinitycount.md): Gets the number of negative infinite values in this map.
- [PositiveInfinityCount](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.numbermap/positiveinfinitycount.md): Gets the number of positive infinite values in this map.
- [Width](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.numbermap/width.md): Gets the width of the map. If the Width equals zero, it implied this map only contains a single value.

## Indexers

- [this[]](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.numbermap/item.md): Gets the number at the given (x,y) coordinate. If the map is constant this indexer will throw.

## Methods

- [Abs](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.numbermap/abs.md): Convert all values in this map to their absolute.
- [AddNoise](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.numbermap/addnoise.md): Use a random engine to add noise to this map.
- [AddPerlinNoise](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.numbermap/addperlinnoise.md): (3 overloads) Add perlin noise to this map.
- [AllEqualTo](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.numbermap/allequalto.md): (2 overloads) Test whether all values are equal to a given value.
- [Blend](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.numbermap/blend.md): (2 overloads) Overlay two maps.
- [Blur](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.numbermap/blur.md): (2 overloads) Blur this map.
- [BlurHorizontal](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.numbermap/blurhorizontal.md): (2 overloads) Blur this map horizontally.
- [BlurVertical](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.numbermap/blurvertical.md): (2 overloads) Blur this map vertically.
- [Clip](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.numbermap/clip.md): (2 overloads) Clip all values in this map to a numeric domain.
- [Convolve](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.numbermap/convolve.md): Apply a convolution kernel to this map.
- [CreateFromDelegate](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.numbermap/createfromdelegate.md): (static) Populate a number map using a shader delegate.
- [CreateFromShapes](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.numbermap/createfromshapes.md): (static) Populate a number map using the elevation data of various shapes.
- [CreateMoveX](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.numbermap/createmovex.md): (static) Create a transformation map for motion along the x-axis.
- [CreateMoveY](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.numbermap/createmovey.md): (static) Create a transformation map for motion along the y-axis.
- [CreateRotateX](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.numbermap/createrotatex.md): (static) Create a transformation map for rotating around an origin.
- [CreateRotateY](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.numbermap/createrotatey.md): (static) Create a transformation map for rotating around an origin.
- [CreateSampler](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.numbermap/createsampler.md): Create a sampler object for this map.
- [CreateScaleX](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.numbermap/createscalex.md): (static) Create a transformation map for scaling along the x-axis.
- [CreateScaleY](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.numbermap/createscaley.md): (static) Create a transformation map for scaling along the y-axis.
- [DownSample](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.numbermap/downsample.md): (2 overloads) Downsample this map.
- [Flip](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.numbermap/flip.md): Flip this map along the diagonal.
- [Fragment](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.numbermap/fragment.md): (2 overloads) Fragment the map.
- [Log](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.numbermap/log.md): (2 overloads) Compute the base-e logarithm of this map.
- [Log10](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.numbermap/log10.md): Compute the base-10 logarithm of this map.
- [Max](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.numbermap/max.md): (2 overloads) Maximize all values in this map with respect to a limit.
- [Median](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.numbermap/median.md): (2 overloads) Apply a rectangular median filter to this map.
- [Min](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.numbermap/min.md): (2 overloads) Minimize all values in this map with respect to a limit.
- [MirrorHorizontal](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.numbermap/mirrorhorizontal.md): Mirror this map horizontally.
- [MirrorVertical](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.numbermap/mirrorvertical.md): Mirror this map vertically.
- [Modify](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.numbermap/modify.md): (2 overloads) Apply a custom modifier to a map.
- [Normalise](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.numbermap/normalise.md): (2 overloads) Normalise this map to the (0~1) domain. If the map contains infinite values, all negative infinities will become 0.0, all positive infinities will become 1.0 and every finite value will become 0.5.
- [Pixelate](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.numbermap/pixelate.md): (2 overloads) Pixelate this map.
- [Posterise](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.numbermap/posterise.md): (2 overloads) Pull all values in this map to a collection of key values.
- [Pow](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.numbermap/pow.md): (2 overloads) Raise this map to a power.
- [Resize](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.numbermap/resize.md): Perform a resizing operation on this map.
- [Round](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.numbermap/round.md): Round all the values in this map.
- [ShiftHorizontal](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.numbermap/shifthorizontal.md): Shift all columns in this map.
- [ShiftVertical](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.numbermap/shiftvertical.md): Shift all rows in this map.
- [Sobel](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.numbermap/sobel.md): Apply a sobel operator to this map.
- [Split](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.numbermap/split.md): Split this map into portions larger than and smaller than some threshold.
- [SubMap](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.numbermap/submap.md): Copy a portion of this map into a new map.
- [ToBitmap](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.numbermap/tobitmap.md): (2 overloads) Create a bitmap out of this number map.
- [ToColourMap](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.numbermap/tocolourmap.md): Create a colour map out of this number map.
- [ToNormalMap](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.numbermap/tonormalmap.md): Create an RGB normal map from this numbermap.
- [Transform](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.numbermap/transform.md): Transform this map.

## Operators

- [operator +](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.numbermap/op-addition.md): (4 overloads, static) Add a value to this number map.
- [operator /](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.numbermap/op-division.md): (3 overloads, static) Divide a value by the entire map.
- [operator *](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.numbermap/op-multiply.md): (3 overloads, static) Multiply this map by a factor.
- [operator -](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.numbermap/op-subtraction.md): (3 overloads, static) Subtract the entire map from a value.
- [operator -](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.numbermap/op-unarynegation.md): (static) Inversion operator.
- [operator +](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.numbermap/op-unaryplus.md): (static) Identity operator.
