Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split morphologies with multiple partitions into multiple objects #69

Open
marwan-abdellah opened this issue Nov 21, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@marwan-abdellah
Copy link
Member

In order to be able to create full mouse brain vasculature datasets, we need a feature to split a single morphology object with multiple partitions into multiple morphology objects, where each object is processed individually.

@marwan-abdellah marwan-abdellah self-assigned this Nov 21, 2023
@marwan-abdellah marwan-abdellah added the enhancement New feature or request label Nov 21, 2023
@marwan-abdellah
Copy link
Member Author

Implementation could use the AdvancedMesh API to construct a mesh object representing the morphology samples, and then split it into multiple meshes directly with the splitPartitions function.

// Load the mesh
std::unique_ptr<Ultraliser::AdvancedMesh> inputMesh =
            std::make_unique<Ultraliser::AdvancedMesh>(options->inputMeshPath);

// Split the partitions
std::vector < Ultraliser::AdvancedMesh* > partitions = inputMesh->splitPartitions();

@marwan-abdellah marwan-abdellah added this to To do in Morphology to Mesh Reconstruction via automation Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

1 participant