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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image based heterogeneous tissue #291

Open
frisograce opened this issue Jun 5, 2024 · 2 comments
Open

Image based heterogeneous tissue #291

frisograce opened this issue Jun 5, 2024 · 2 comments
Labels
feature New feature or request

Comments

@frisograce
Copy link
Collaborator

Please describe your 馃殌 feature request.
The ability to add heterogeneity to the tissue from a pre-specified image

Describe the solution you'd like
Implement a new class in heterogeneity_generator.py to allow for heterogeneity to come from a pre-specified image

@frisograce frisograce added the feature New feature or request label Jun 5, 2024
@jgroehl
Copy link
Collaborator

jgroehl commented Jun 5, 2024

You should be able to just add any correctly sized numpy array into the volume fraction of any of the molecules/structures.
Is the idea to have a class that reads a (e.g. PNG) image and converts it into a numpy array?
The class should probably automatically scale the input image to the 3D volume in a clever way (customisable by flags)?

@frisograce frisograce mentioned this issue Jun 6, 2024
2 tasks
@frisograce
Copy link
Collaborator Author

The merge request just added shows just uses numpy arrays for the time being, but functionality for images is certainly possible for the future!

Indeed the idea is that the class will scale the images in multiple ways as wished by the user (I've already added quite a few but more are possible) and have used tags to help the user navigate them!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants