find_initial_points | R Documentation |
This function finds the initial cluster centers for a supervoxel algorithm. Supervoxels are used to partition 3D image data into volumetric regions, grouping similar voxels together. The initial cluster centers are crucial for the performance and quality of the final supervoxels.
find_initial_points(cds, grad, K = 100)
cds |
A matrix or data frame representing the spatial coordinates of the voxels. |
grad |
A vector representing the gradient values of the voxels. |
K |
The desired number of supervoxels (clusters) in the output (default: 100). |
A list containing two elements: selected - a vector of the selected indices corresponding to the initial cluster centers, coords - a matrix or data frame with the spatial coordinates of the initial cluster centers.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.