[Rtk-users] How to use RTK to reconstruction 2D X- ray Scan projection images into 2D CT Slice image?

Simon Rit simon.rit at creatis.insa-lyon.fr
Wed Jan 4 12:23:19 UTC 2023


Hello,
1/ Yes, you can read images in raw format but you need to specify the meta
information for example in python
rawio = itk.RawImageIO.New()
rawio.SetNumberOfDimensions(2)
rawio.SetPixelType(itk.CommonEnums.IOPixel_SCALAR)
rawio.SetComponentType(itk.CommonEnums.IOComponent_FLOAT)
rawio.SetDimensions(0, 256)
rawio.SetDimensions(1, 256)
rawio.SetSpacing(0, 1)
rawio.SetSpacing(1, 1)
rawio.SetByteOrderToLittleEndian()

# List of filenames
fileNames = []
for i in range(100):
    fileNames.append(f'{i}.raw')

# Read projections
CPUImageType = itk.Image[itk.F,3]
proj = rtk.projections_reader(ttype=CPUImageType, file_names=fileNames,
ImageIO=rawio)

2/ We only work in 3D. You can reconstruct one 3D slice by using a size of
1 in the axial direction.
Simon

On Mon, Dec 26, 2022 at 10:40 AM 何明哲 via Rtk-users <
rtk-users at public.kitware.com> wrote:

>
> Hello everyone
>
> I am a newbie in using RTK
>
> I have  two question to ask,
> 1. Can the projectionreader API read images in RAW format data set?
> 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?
>
> thanks for reply ,BR
> _______________________________________________
> Rtk-users mailing list
> Rtk-users at public.kitware.com
> https://public.kitware.com/cgi-bin/mailman/listinfo/rtk-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/rtk-users/attachments/20230104/6b19ad73/attachment.htm>


More information about the Rtk-users mailing list