<div dir="ltr"><div>Hello,</div><div>1/ Yes, you can read images in raw format but you need to specify the meta information for example in python</div><div>rawio = itk.RawImageIO.New()<br>rawio.SetNumberOfDimensions(2)<br>rawio.SetPixelType(itk.CommonEnums.IOPixel_SCALAR)<br>rawio.SetComponentType(itk.CommonEnums.IOComponent_FLOAT)<br>rawio.SetDimensions(0, 256)<br>rawio.SetDimensions(1, 256)<br>rawio.SetSpacing(0, 1)<br>rawio.SetSpacing(1, 1)<br>rawio.SetByteOrderToLittleEndian()<br><br># List of filenames<br>fileNames = []<br>for i in range(100):<br> fileNames.append(f'{i}.raw')<br><br># Read projections<br>CPUImageType = itk.Image[itk.F,3]<br>proj = rtk.projections_reader(ttype=CPUImageType, file_names=fileNames, ImageIO=rawio)</div><div><br></div><div>2/ We only work in 3D. You can reconstruct one 3D slice by using a size of 1 in the axial direction.</div><div>Simon<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Dec 26, 2022 at 10:40 AM 何明哲 via Rtk-users <<a href="mailto:rtk-users@public.kitware.com">rtk-users@public.kitware.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br clear="all"><div><div dir="ltr"><div dir="ltr"><div>Hello everyone<br><br>I am a newbie in using RTK<br><br>I have two question to ask,<br>1. Can the projectionreader API read images in RAW format data set?<br>2. Which API or method does RTK provide to reconstruct the 2D X-ray scan data set projection image into a 2D CT Slice image ?Or is there any other reference document that can help me reconstruct CT slices in RTK? <br></div><div><br></div><div>thanks for reply ,BR</div></div></div></div></div>
_______________________________________________<br>
Rtk-users mailing list<br>
<a href="mailto:Rtk-users@public.kitware.com" target="_blank">Rtk-users@public.kitware.com</a><br>
<a href="https://public.kitware.com/cgi-bin/mailman/listinfo/rtk-users" rel="noreferrer" target="_blank">https://public.kitware.com/cgi-bin/mailman/listinfo/rtk-users</a><br>
</blockquote></div>