Skip to content

Is there a way to cut out part of the image? #695

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

You must be logged in to vote

If I understand you correctly, you're generating 64 subimages by scanning the csv file, and putting each sphere into it's respective image, but the problem arises because spheres on the borders span between multiple images. This is conceptually simple to solve, but practially tricky. The solution is the generate sub-images that are larger than you need, by the R of your largest expected particle. These border spheres then end up in multiple images. Finally you just crop the images down to the correct size so there is no overlap, and your done.

In practice howevrer this padding will create lots of complications with indexing and cropping, etc. It's possible and porespy has a few tools that…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by loaa4
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