【发布时间】:2016-05-05 04:00:58
【问题描述】:
我正在运行 Matlab 2016a 并在 301x301x271 逻辑图像上使用 imopen。 示例代码:
A = randi([0 1], 301, 301, 271);
A = logical(A);
se = strel('sphere',12);
tic;
A = imopen(A, se);
toc;
经过的时间是 294.313918 秒。
使用所有 4 个 CPU 内核。由于某种原因(600 秒),从函数中调用相同的代码仅使用一个内核。
function CreateExample()
...code...
end
使用 MITK(基本上只使用 itkBinaryMorphologicalOpeningImageFilter)做同样的事情需要不到 10 秒。
有任何优化的想法吗? Gpuarray 是不可能的,因为它是 3D 的。
【问题讨论】:
-
尝试使用分析器来找出需要这么长时间的原因。
标签: matlab image-processing itk mitk