align_image_with_openpnm

align_image_with_openpnm(im)[source]

Rotates an image to agree with the coordinates used in OpenPNM.

It is unclear why they are not in agreement to start with. This is necessary for overlaying the image and the network in Paraview.

Parameters

im (ND-array) – The image to be rotated. Can be the Boolean image of the pore space or any other image of interest.

Returns

image – Returns a copy of im rotated accordingly.

Return type

ND-array

Examples

Click here to view online example.