文章目录 Syntax Description Examples Binarize Image Using Global Threshold 使用局部自适应阈值对图像进行二值化 Binarize 3-D Volume Using Global Thresholding method — Method used to binarize image Name-Value Pair Arguments 'Sensitivity' — Sensitivity factor for adaptive thresholding 'ForegroundPolarity' — Determine which pixels are considered foreground pixels imbinarize:通过阈值二值化2D灰度图像或3D体积 Syntax BW = imbinarize ( I ) BW = imbinarize ( I , method ) BW = imbinarize ( I , T ) BW = imbinarize ( I , 'adaptive' , Name , Value ) Description BW = imbinarize(I)通过用1s替换全局确定的阈值之上的所有值并将所有其他值设置为0s,从2D或3D灰度图像I创建二进制图像。 默认情况下