One thing I can make in my problem in order to be able to use Breeze, it is the final three dimensional matrix can be calculate combining different two dimensional matrix. By example:
IM(512,512) -> original image
IM1(512,512) -> result of apply algorithm 1 to original image
IM2(512,512) -> result of apply algorithm 2 to original image
IM3(512,512) -> result of apply algorithm 3 to original image
RES(512,512,3) -> matrix with the results of all algorithms
RES(:,:,1)=IM1
RES(:,:,2)=IM2
RES(:,:,3)=IM3
My objective is use DenseMatrix to create IM1, IM2, IM3, then create RES like Array[Array[Array[Double]]] and finally convert them from DenseMatrix to two dimensional Array in order to assign them to RES. But I am not able to convert the DenseMatrix to two dimensional array. I know toArray makes it but I obtain an one dimensional array.
Is there some way or method to convert a DenseMatrix to two dimensional array of scala?
Thanks.