-
Dear professor, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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 may help you. In the tools module we have |
Beta Was this translation helpful? Give feedback.
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…