
ITK 多層級 Multi-Resolution 影像對準架構教學與範例
介紹如何在 ITK 的多層級(multi-resolution)影像對準架構下,進行線性仿射影像對準(affine registration)。 ...

介紹如何在 ITK 的多層級(multi-resolution)影像對準架構下,進行線性仿射影像對準(affine registration)。 ...

介紹如何使用 SimpleITK 的 IntensityWindowingImageFilter 對影像的像素值進行線性轉換。 IntensityWindowingImageFilter 的作用跟 RescaleIntensityImageFilter 類似,差異在於 IntensityWindowingImageFilter 可以自行指定窗函數的數值區間。 相關文章: SimpleITK 使用 RescaleIntensityImageFilter 轉換影像數值範圍教學與範例 ...

介紹如何使用 VersorRigid3DTransform 剛性影像轉換搭配 CenteredTransformInitializer 置中初始化對影像進行對準。 影像對準 首先定義各種資料與物件的型別。 import itk import matplotlib.pyplot as plt # 定義資料型別 FixedImageType = itk.Image[itk.F, 3] MovingImageType = itk.Image[itk.F, 3] TransformType = itk.VersorRigid3DTransform[itk.D] OptimizerType = itk.RegularStepGradientDescentOptimizerv4[itk.D] RegistrationType = itk.ImageRegistrationMethodv4[FixedImageType, MovingImageType] MetricType = itk.MeanSquaresImageToImageMetricv4[FixedImageType, MovingImageType] 建立影像 reader,並指定影像來源檔案: ...

介紹如何使用 SimpleITK 的 RescaleIntensityImageFilter 對影像的像素值進行線性轉換。 相關文章: SimpleITK 使用 IntensityWindowingImageFilter 轉換影像數值範圍教學與範例 首先從 DICOM 影像序列讀取 3D 影像資料: import SimpleITK as sitk import matplotlib.pyplot as plt # DICOM 影像序列檔案所在目錄 dicom_folder = "/mnt/data/ct_image" # 建立影像序列 Reader reader = sitk.ImageSeriesReader() # 取得所有 DICOM 影像的 Series IDs series_ids = reader.GetGDCMSeriesIDs(dicom_folder) # 取得指定 Series ID 的 DICOM 影像序列檔案名稱 dicom_filenames = reader.GetGDCMSeriesFileNames(dicom_folder, series_ids[]) # 設定 DICOM 影像序列檔案名稱 reader.SetFileNames(dicom_filenames) # 實際讀取影像內容 image = reader.Execute() 確認影像的大小: ...

介紹如何使用 ITK 的 BinaryMask3DMeshSource 將二元影像(binary image)轉為網格(mesh)構成的 surface。 相關文章: ITK 使用 TriangleMeshToBinaryImageFilter 將 Surface 轉為二元影像教學與範例 VTK 使用 vtkDiscreteMarchingCubes 將二元遮罩影像轉為 Mesh 網格教學與範例 ...