美文网首页
ITK 坐标系

ITK 坐标系

作者: stnevermore | 来源:发表于2023-01-19 16:20 被阅读0次

    With regard to the coordinate of medical image, we use two types of orientation to represent the direction.

    reference
    Coordinate_systems
    orientimagefilter
    orientterms
    LPS
    in ITK, it can also be represented as RAI

    RAS (can also be LIP)

        itk::OrientImageFilter<ImageType, ImageType>::Pointer orientationFilter = itk::OrientImageFilter<ImageType, ImageType>::New();
        orientationFilter->UseImageDirectionOn();
        orientationFilter->SetDesiredCoordinateOrientation(itk::SpatialOrientation::ITK_COORDINATE_ORIENTATION_RAI);
        orientationFilter->SetInput(reader->GetOutput());
        orientationFilter->Update();
    

    so, the snippet of code is to convert to LPS (itk is RAI) orientation.

    相关文章

      网友评论

          本文标题:ITK 坐标系

          本文链接:https://www.haomeiwen.com/subject/ysrqhdtx.html