imMinkowski

版本 1.6 (221.4 KB) 作者: David Legland
Measure of geometric parameters in 2D or 3D images (surface area, perimeter, Euler Number...)
4.6K 次下载
更新时间 2021/1/11

查看许可证

Contains various functions for measuring or estimating geometric quantities from 2D or 3D images.

Parameters available for 2D images are:
* the area (number of pixels)
* the perimeter (based on Crofton formula)
* the(2D) Euler Number

Parameters available for 3D images are:
* the volume,
* the surface area (measured using the Crofton formula),
* the surface area of the interface between two labels
* the mean breadth (also known as integral of mean curvature),
* the (3D) Euler Number

Most functions work both for binary and label images. It is possible to specify options (connectivity for Euler Number, number of directions for perimeter or surface area), as well as the spatial calibration of images. For some parameters, it is also possible to estimate the density with respect to image area or volume.

Example 1: measure perimeter in 2D label image
lbl = bwlabel(imread('coins.png') > 100);
p = imPerimeter(lbl)
p =
184.8668 154.9495 185.1921 267.1690 187.3183 179.5038 182.7406 180.8445 155.5049 155.5049

Example 2: measure surface area in 3D binary image
img = analyze75read(analyze75info('brainMRI.hdr'));
bin = imclose(img>0, ones([5 5 3]));
S = imSurface(bin, [1 1 2.5]) % specify resolution
ans =
2.7291e+004

The latest development version can be found on GitHub within the MatImage project: http://github.com/mattools/matImage .

These functions were developped when writing the following article:
Legland, D.; Kiêu, K. & Devaux, M.-F. Computation of Minkowski measures on 2D and 3D binary images. Image Anal. Stereol., 2007, 26, 83-92, http://www.ias-iss.org/ojs/IAS/article/view/811.

Following reference can also be of interest:
Joachim Ohser and Frank Muecklich (2000) Statistical Analysis of Microstructures in Material Sciences, John Wiley and Sons.

引用格式

David Legland (2024). imMinkowski (https://www.mathworks.com/matlabcentral/fileexchange/33690-imminkowski), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2020a
兼容任何版本
平台兼容性
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.6

update management of label images;
rename imSurface to imSurfaceArea;
various code cleanup.

1.5.0.0

update dependencies, added imProjectedArea.m and imProjectedDiameter.m

1.4.0.0

Added support for computation of mean breadth density, and of look-up tables for several parameters. Default number of directions for computing surface area is 13, resulting in more accurate results.

1.3.0.0

improve management of label images: add psb to compute functionals only on specific labels, and enhance automatic detection of labels in image

1.1.0.0

fix some bugs in imPerimeterDensity and imSurface, add imJointSurface

1.0.0.0