Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue regarding calculation of box counting dimension of a given image of galaxy contour #1

Open
Subhadip-15 opened this issue Nov 16, 2023 · 0 comments

Comments

@Subhadip-15
Copy link

If I try to run the code in MATLAB, this code is giving error even on its own jpeg images. I have used here the image of Vicsek Fractal
It is showing this warning if I try to run the code in MATLAB,

getfractaldim("vicsek-fractal.png", 180, 40, 10)
Current plot heldWarning: Polynomial is not unique; degree >= number of data points. > In [polyfit](matlab:matlab.internal.language.introspective.errorDocCallback('polyfit', '/MATLAB/toolbox/matlab/polyfun/polyfit.m', 79)) ([line 79](matlab: opentoline('/MATLAB/toolbox/matlab/polyfun/polyfit.m',79,0)))
In [getfractaldim](matlab:matlab.internal.language.introspective.errorDocCallback('getfractaldim', '/MATLAB Drive/fractal-dimensions/getfractaldim.m', 47)) ([line 47](matlab: opentoline('/MATLAB Drive/fractal-dimensions/getfractaldim.m',47,0)))
Fractal Dimension = 0.000000
Array indices must be positive integers or logical values.

Error in [getfractaldim](matlab:matlab.internal.language.introspective.errorDocCallback('getfractaldim', '/MATLAB Drive/fractal-dimensions/getfractaldim.m', 54)) ([line 54](matlab: opentoline('/MATLAB Drive/fractal-dimensions/getfractaldim.m',54,0)))
text(x(end),y(end)+2,"FD = " + num2str(fd));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant