Skip to content

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

Description

@Subhadip-15

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));

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions