 | CIMUPigeonHole Method |
Pigeon-hole and count points by location into a grid.
Namespace:
GeoEngine.Core.GXNet
Assembly:
geoengine.core.gxnet (in geoengine.core.gxnet.dll) Version: 2024.2.0.25
Syntaxpublic static void PigeonHole(
CIMG img,
CVV vv_x,
CVV vv_y,
ref int put
)
public static void PigeonHole(
CIMG img,
CVV vv_x,
CVV vv_y,
ref int put
)
Public Shared Sub PigeonHole (
img As CIMG,
vv_x As CVV,
vv_y As CVV,
ByRef put As Integer
)
Public Shared Sub PigeonHole (
img As CIMG,
vv_x As CVV,
vv_y As CVV,
ByRef put As Integer
)
public:
static void PigeonHole(
CIMG^ img,
CVV^ vv_x,
CVV^ vv_y,
int% put
)
public:
static void PigeonHole(
CIMG^ img,
CVV^ vv_x,
CVV^ vv_y,
int% put
)
static member PigeonHole :
img : CIMG *
vv_x : CVV *
vv_y : CVV *
put : int byref -> unit
static member PigeonHole :
img : CIMG *
vv_x : CVV *
vv_y : CVV *
put : int byref -> unit
Parameters
- img
- Type: GeoEngine.Core.GXNetCIMG
Input grid - vv_x
- Type: GeoEngine.Core.GXNetCVV
X locations - vv_y
- Type: GeoEngine.Core.GXNetCVV
Y locations - put
- Type: SystemInt32
Number of points located in the grid.
Remarks
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 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.
See Also