Skip to content

Alter the REV metric so that the subdomains have the same aspect ratio as image? #578

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

You must be logged in to vote

Hi @MaPhewJ, I was on vacay last week, sorry for the delay. Your proposal is interesting. I'm pretty sure we could easily control the aspect ratio of the cube, but that would require altering the function, and I'm not totally convinced this is a universally desired behavior. Have you thought about zooming your image to be cubic? If you use the scipy.ndimage.zoom function you can zoom different amounts in different directions, so zoom(im, zoom=[1, 1, 10], order=0) would expand the z-dimension by a factor of 10. I "think" the result would actually be valid "as is" since you'll get 10x more pixels in your volume, but your volume will be 10x larger, so this should cancel out. Worth a shot maybe?

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@MaPhewJ
Comment options

@jgostick
Comment options

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