1
我使用bwboundaries获取图像边界。它返回整数值。但我需要漂浮像素(空间像素)我该如何解决这个问题?bwboundaries获取图像边界
clc
clear all
close all
grayImage= dicomread('diz');
subplot(1, 1, 1);
imshow(grayImage, []);
hFH = imfreehand();
binaryImage = hFH.createMask();
subplot(1, 1, 1);
imshow(binaryImage);
structBoundaries = bwboundaries(binaryImage);
arrayBoundaries=cell2mat(structBoundaries);