Porous Texture interpolation is implemented here. Assume you have got two
binary maps of zeros and ones which gives a texture similar to a porous media. If you want to find
a hybrid combination of two textures, this code helps you.
You can control the similarity weight (W).
A1 and A2 are two 3-D or 2D arrays with the same size contain only zero
and one, W is the similarity weight between 0 to 1, which 1 means 100%
similarity to A1 texture and vice versa.
If you use this code in your research please cite this paper:
Rabbani, A., Babaei, M., Shams, R., Da Wang, Y., & Chung, T. (2020). DeePore: a deep learning workflow for rapid and comprehensive characterization of porous materials. Advances in Water Resources, 146, 103787.
Also, the used methodology is described there.
Check out my tutorial videos on porous material modeling via Matlab on youtube:
By Arash Rabbani