Click to See Complete Forum and Search --> : Mandelbrot Set making it find a specific region of an image


evolutions
12-11-2003, 12:22 PM
i've got a ppm image file and i need to edit my program so i can make it find a specific region using the mandlebrot set.


sample image with width of 1.0, height of 1.0, and origin of -.5,.5

http://cs.dixie.edu/f03/cs3550/sources/prog07-mb.jpg

nowonmai
12-12-2003, 06:51 AM
So is the ppm image a full mandelbrot set? And you want to locate a specific part of it?
If I were to approach this problem, I'd probably do something like this.
Sample a square from the top left of your image, compare the corner squares and keep moving your sample until they are the same colours as the corners of the bit you are looking for. You will then be reasonably close to the bit you are looking for. In order to get more accuracy, split your sample square into four and match all 16 corners to the bit you are looking for. Do the same again (16 squares, 64 corners) and again, and you will quickly approach 100% accuracy.
Of course, this method will only work if the part you are looking for has detail. If it's all one colour, the method won't work (but no one will know either, not even you :))