
Excel 最小值 MIN 函數使用教學與範例
介紹如何在 Excel 中使用 MIN 函數計算數值的最小值,以及套用上限值。 計算最小值 假設我們有一群數值資料如下,我們想要找出這些資料之中最小的數值。 ...

介紹如何在 Excel 中使用 MIN 函數計算數值的最小值,以及套用上限值。 計算最小值 假設我們有一群數值資料如下,我們想要找出這些資料之中最小的數值。 ...

介紹如何使用 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,並指定影像來源檔案: ...

介紹如何在 Python 中使用 scipy 與 matplotlib 模組讀取 wav 聲音檔案,並繪製波形圖(waveform)、頻譜圖(spectrum)與時頻譜圖(spectrogram)。 ...

介紹如何在 Python 中使用 ctypes 載入 DLL 與 SO 動態連結函式庫,搭配 C/C++ 語言進行高速計算。 Python 的 ctypes 模組可以用來呼叫外部的函式庫,提供相容於 C 語言的資料型別,開發者可以透過這個模組直接呼叫 DLL 檔案(Windows 平台)或 SO 檔案(macOS 或 Linux 平台)中的函數。以下分別介紹 Windows 平台建立與使用 DLL 檔案、macOS 與 Linux 平台建立與使用 SO 檔案的步驟。 ...

介紹如何使用 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() 確認影像的大小: ...