Hausdorff (Box-Counting) Fractal Dimension

버전 1.2.0.0 (1.82 KB) 작성자: Alceu Costa
Returns the Haussdorf fractal dimension of an object represented by a binary image.
다운로드 수: 6.2K
업데이트 날짜: 2013/12/18

라이선스 보기

Returns the Haussdorf fractal dimension D of an object represented by the binary image I. Nonzero pixels belong to an object and 0 pixels constitute the background.

Algorithm:

1 - Pad the image with background pixels so that its dimensions are a power of 2.
2 - Set the box size 'e' to the size of the image.
3 - Compute N(e), which corresponds to the number of boxes of size 'e' which contains at least one object pixel.
4 - If e > 1 then e = e / 2 and repeat step 3.
5 - Compute the points log(N(e)) x log(1/e) and use the least squares method to fit a line to the points.
6 - The returned Haussdorf fractal dimension D is the slope of the line.

In this blog post I show how this code can be used to compute the fractal dimension:

http://www.alceufc.com/2013/11/fractal-dimension-from-image.html

인용 양식

Alceu Costa (2024). Hausdorff (Box-Counting) Fractal Dimension (https://www.mathworks.com/matlabcentral/fileexchange/30329-hausdorff-box-counting-fractal-dimension), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2009a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Fractals에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.2.0.0

Updated the description to include a link to a blog post explaining how the code can be used.

1.1.0.0

Corrected a typo in the file title .

1.0.0.0