morph3dlinks: An internal function that computes the spatial neighbours for voxels. It is an internal function called by morph3d() and not intended to be called on its own.
Description
An internal helper function to compute voxel neighbours in orthogonal 3D space and to return the information in data frame format back to morph3d(), the function that calls this function.
This function returns an intermediate data frame of voxel neighbours that is subsequently pared down as morph3d() continues.
Arguments
VOLOBJ
This is a 3D array that is larger in all dimensions, within which the actual data array is inset. This ensures that outer margins will be properly processed.
VOXELIDS
This is a 3D array of the unique voxel IDS, which are used to track individual voxels and their connectivity.
VERBOSE
This is a Boolean flag for turning on | off additional feedback during processing.
Author
Tarmo K. Remmel
Details
This internal function simply makes the total length of the morph3d() function shorter.
References
Remmel, T.K. 2022. Extending morphological pattern analysis to 3D voxels. Landscape Ecology 37(2):373-380.