Compressing a big OpenCV Matrix into a 3D texture with Unity or not

I am a student and my project group wants to convert a very large OpenCV Matrix (about ten gigabytes) into 3D Texture, but the maximum resource capacity we have is 2 gigabytes for the 3D texture. we don’t know how to optimize this matrix to be able to create the texture. we are working with UNITY tool and it is for 3d visualization project