Hi everyone,
I am currently working with 2D closed femur contours and I have transitioned to using the Python API. I managed to get the grooming step working (all shapes are successfully aligned to the center), but I am running into a new issue during the optimization phase.
The Issue: The particles are not spreading evenly around the entire contour of the femur. Instead, they all cluster or get stuck on a very small portion of the bone.
Interestingly, the Analysis phase (PCA) actually works without throwing any errors, but since the particles are clumped together, it only analyzes that tiny section of the bone, completely ignoring the rest of the femur geometry.
Here is the parameter dictionary I am currently using in my Python pipeline:
Python
parameter_dictionary = {
"number_of_particles" : 128,
"use_normals": 0,
"normals_strength": 0.0,
"iterations_per_split" : 200,
"optimization_iterations" : 1000,
"starting_regularization" : 1000,
"ending_regularization" : 10,
"initial_relative_weighting": 0.1,
"relative_weighting" : 100,
"procrustes" : 1,
"procrustes_interval" : 1,
"procrustes_scaling" : 1,
"procrustes_rotation_translation" : 1,
"verbosity" : 0,
"multiscale": 1,
"multiscale_particles": 32,
"narrow_band": 250,
}
My Question: Are there specific parameters I should tweak to force the particles to repel each other and cover the entire 2D contour? Could this be related to my relative_weighting, the starting_regularization, or perhaps a side effect of working with 2D data in the narrow band?
Any advice on how to fix this particle clumping would be greatly appreciated!
Thank you,
Marta



