Added tiff preprocessor for REV data
This commit is contained in:
1 parent
459c7ed96c
commit
ad9e8f2c2a
2 files changed
+21
No files matched your search
@@ -11,6 +11,7 @@ INSTALL_EXAMPLE( relperm )
|
||||
INSTALL_EXAMPLE( Poiseuille )
|
||||
INSTALL_EXAMPLE( Juanes )
|
||||
INSTALL_EXAMPLE( MicroModel )
|
||||
INSTALL_EXAMPLE( Tiff )
|
||||
|
||||
|
||||
# Create unit tests for each example
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
from skimage import io
|
||||
import glob
|
||||
import numpy as np
|
||||
|
||||
print("Concatenating tiff files into 3D volume")
|
||||
|
||||
IMAGES=sorted(glob.glob("*.tif"))
|
||||
data=np.array([])
|
||||
|
||||
mydata=[]
|
||||
for im in IMAGES:
|
||||
print(im)
|
||||
image=io.imread(im)
|
||||
mydata.append(image)
|
||||
# data=np.append(data,image,2)
|
||||
|
||||
data=np.array(mydata)
|
||||
data.tofile("data.raw")
|
||||
|
||||
|
||||
Reference in new issue
Block a user