<div dir="ltr"><div>Hello.<br>In matlab example from <a href="http://wiki.openrtk.org/index.php/SimpleRTK">http://wiki.openrtk.org/index.php/SimpleRTK</a> volume which is projected generates in SheppLoganPhantomFilter(). But i have my own volume, that is stored in matlab regular matrix for example.<br><br>What i want to do:<br>forward = py.JosephForwardProjectionImageFilter();<br>forward.SetGeometry(g);<br>projs = forward.Execute(projs, volume);<br><br>The problem is to initialize the volume parameter.<br>By this code<br>data_size = size(matimg);<br>transpose = matimg';<br>result=py.numpy.reshape(transpose(:)', int32(data_size));<br>volume = py.Image.fromarray(result);<br><br>i store volume in type of py.Image, but in Execute() method i have to pass py.SimpleRTK.SimpleRTK.Image type. So, is there way to do such convertation ? Or is there some another way to init py.SimpleRTK.SimpleRTK.Image with my own matlab data ?<br><br></div><div><br><span class="gmail-br0"></span></div></div>