Function: calculateNeighborhoodStats()
calculateNeighborhoodStats(
scalarData
,dimensions
,centerIjk
,radius
):NeighborhoodStats
Calculates statistical properties (mean, standard deviation) of a neighborhood around a center point in a 3D volume.
Parameters
• scalarData: PixelDataTypedArray
The array containing voxel intensity values
• dimensions: Point3
The dimensions of the volume [width, height, depth]
• centerIjk: Point3
The center point coordinates in IJK space
• radius: number
The radius of the neighborhood to analyze in pixels
Returns
NeighborhoodStats
An object containing the mean, standard deviation, and count of voxels in the neighborhood
Defined in
packages/core/src/utilities/calculateNeighborhoodStats.ts:16