Is there any method to initialize 3D matrices with boost, i am trying to use these for image processing of medical images. I am used to working with matlab but now i have to work with c++. Boost has helped a lot in the case of 2D images now i need to extend my work to 3D images. so is there any possibility for this with boost ublas?
function f( collection_type &collection )
md_array_type & l = collection;
md_array_type & m = collection;
// Do whatever with l, m... as those can be used as regular
mult-dimensional arrays in here.
and call like:
f ( md_collection );
// now md_collection has been modified from function f.
Please post any further question regarding multi-dimensional arrays to
the general boost mailing list because they are out of context here.
On 09/11/2014 10:51 AM, sanann wrote:
> Thank you very much it has helped me a lot, and i now have what i need. i
> have used it for quite a wide extent before coming to a major problem.
> my case previously was that i used boost ublas matrix in a function whose
> output i could put into a boost array and use it as a function.
> function f
> return t;
> now i would like to do the same for 3D matrices which i generated using
> boost multi_array. do you know any possible way to send the 3d arrays from a
> function into another piece of code
> View this message in context: http://boost.2283326.n4.nabble.com/Initializing-a-3D-matrix-tp4667430p4667483.html > Sent from the Boost - uBLAS mailing list archive at Nabble.com.
> ublas mailing list
> [hidden email] > http://lists.boost.org/mailman/listinfo.cgi/ublas > Sent to: [hidden email]