find fractal dimension value

11 visualizzazioni (ultimi 30 giorni)
Frisda Sianipar
Frisda Sianipar il 12 Lug 2021
Commentato: Frisda Sianipar il 13 Lug 2021
i have the code to find fractal dimension value, but the image limit that can be calculated is only up to 512 x 512. So here I want this code to be able to search up to 2048 x 2048. Can you help me sir?
This is the code:
Thankyou in advance sir.

Risposta accettata

Walter Roberson
Walter Roberson il 12 Lug 2021
Adjusted code attached. I also repaired an error in it (it was confusing x and y).
The adjusted code does not require that the image is square, or an exact power of 2. However, it might ignore parts of the image outside the last full square power of 2 size.
The adjusted code uses baby.jpg as the same image to read, which is 3600 x 2450 or so. The program slows down a lot after i = 9.
  11 Commenti
Walter Roberson
Walter Roberson il 13 Lug 2021
You asked for a function form, I provided a function form. I also provided example code of how to call the function.
If you are not intending to pass image data or an image file name to the function, then how do you intend for the function to get information about what data it should work with? If the intention is that the function should prompt the user to select a file, then you should have said that.
Frisda Sianipar
Frisda Sianipar il 13 Lug 2021
its work sir, thankyou so much

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Fractals in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by