<div dir="ltr">Hi I'm trying to make an sinogram of shepp logan phantom.<div><br></div><div>But I don't know how to do it using RTK...</div><div><br></div><div>Do I need to define geometry for this?</div><div><br></div><div>Here's what I did so far</div><div><br></div><div><br>image = itk.imread('C:\\Users\\USER\\Jupyter Notebook\\ITK-RTK\\shepp_logan_phantom.png', itk.F)<br>array = itk.array_from_image(image)</div><div>expand = np.expand_dims(array, axis=2) # just to make it into 3 dimension (
ForwardProjectionImageFilter only supports 3D )</div><div>expand = itk.image_from_array(expand)<br></div><div><br></div><div>ImageType = itk.Image[itk.F,3]<br><br>FWDType = rtk.ForwardProjectionImageFilter[ImageType, ImageType]<br>fwd = FWDType.New()<br></div><div><br></div><div><br></div><div>For the last line I have tried both</div><div><br></div><div>fwd = FWDType.New(expand) ---> <span class="gmail-ansi-red-intense-fg gmail-ansi-bold" style="font-size:14px;white-space:pre-wrap;box-sizing:border-box;color:rgb(178,43,49);font-weight:bold">AttributeError</span><span style="color:rgb(0,0,0);font-size:14px;white-space:pre-wrap">: No method found to set the input.</span></div><div>and</div><div>fwd = FWDType.New(Input = expand) ---> <span class="gmail-ansi-red-intense-fg gmail-ansi-bold" style="font-size:14px;white-space:pre-wrap;box-sizing:border-box;color:rgb(178,43,49);font-weight:bold">AttributeError</span><span style="color:rgb(0,0,0);font-size:14px;white-space:pre-wrap">: 'itkObject' object has no attribute 'SetInput'</span></div><div><br></div><div>they both had error like this.</div><div><br></div><div>How can I make an sinogram of shepp logan phantom?</div><div><br></div><div><br></div><div>Yoonho.</div><img width="0" height="0" class="mailtrack-img" alt="" style="display:flex" src="https://mailtrack.io/trace/mail/a1b0394e8b3c4d7e7af503ed924b4af3fb4a4a7a.png?u=4672561"></div>