Skip to content

How to apply user's own 3D images to porespy, rather than images generated? #738

Answered by jgostick
eromanga233 asked this question in Q&A
Discussion options

You must be logged in to vote

No problem:

import imageio

im = imageio.volread(<your filename>)

If you don't have imageio installed, do pip install imageio at the conda prompt.

Your file can be in multiple formats, I like tif since it's common and recognizable as an image. You also need to ensure your image is in binary format, ie 1's and 0's. You can do this in python after you've used imageio to load it, or preprocess it in something like imagej.

I'll make a note to create a tutorial on this.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jgostick
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants