![](../icons/Help.png) | CIMUPigeonHoleColor Method |
Pigeon-hole and count points by location and color locations in another grid based on ITR information.
Available since Oasis montaj version: 9.6
License: Available to anyone with an Oasis Montaj license.
Namespace: GeoEngine.Core.GXNetXAssembly: geoengine.core.gxnetx (in geoengine.core.gxnetx.dll)
Notes
X and Y location VVs are input. If a point (X, Y) is located within
one-half cell width from a location in the grid, then the value of
the grid at that location is incremented by 1.
The cells are inclusive at the minima, and exclusive at the maxima:
e.g. if dDx = dDy = 1, and dXo = dYo = 0, then the corner cell would
accept values -0.5 <= X < 0.5 and -0.5 <= Y < 0.5.
The grid values should be set to 0 before calling this function.
The color grid locations are coloured by the number of items at each location,
with the colour being determined by the input ITR, which should map the integer
count values 1, 2, 3, etc. onto individual colours.
The number of points "pigeon-holed" is returned to the user.
This function is useful, for instance, in determining the density of
sample locations in a survey area.
Syntaxpublic static void PigeonHoleColor(
CGXNETCore gxNetShared,
CIMG img,
CIMG color_img,
CVV vv_x,
CVV vv_y,
CITR itr,
ref int put
)
Public Shared Sub PigeonHoleColor (
gxNetShared As CGXNETCore,
img As CIMG,
color_img As CIMG,
vv_x As CVV,
vv_y As CVV,
itr As CITR,
ByRef put As Integer
)
public:
static void PigeonHoleColor(
CGXNETCore^ gxNetShared,
CIMG^ img,
CIMG^ color_img,
CVV^ vv_x,
CVV^ vv_y,
CITR^ itr,
int% put
)
static member PigeonHoleColor :
gxNetShared : CGXNETCore *
img : CIMG *
color_img : CIMG *
vv_x : CVV *
vv_y : CVV *
itr : CITR *
put : int byref -> unit
Parameters
- gxNetShared
- Type: GeoEngine.Core.GXNetXCGXNETCore
A shared CGXNETCore - img
- Type: GeoEngine.Core.GXNetXCIMG
Input grid - color_img
- Type: GeoEngine.Core.GXNetXCIMG
Input color grid - vv_x
- Type: GeoEngine.Core.GXNetXCVV
X locations - vv_y
- Type: GeoEngine.Core.GXNetXCVV
Y locations - itr
- Type: GeoEngine.Core.GXNetXCITR
Input color transform - put
- Type: SystemInt32
Number of points located in the grid.
See Also