mightymandel v16

GPU-based Mandelbrot set explorer

find_ref.c File Reference


Algorithms for finding new reference points. More...

#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <mpfr.h>
#include "image.h"
#include "logging.h"
#include "utility.h"
#include "find_ref.h"
+ Include dependency graph for find_ref.c:

Go to the source code of this file.


enum find_ref_t find_ref (struct ref_set *refs, struct blob_set *blobset, int width, int height, const mpfr_t centerx, const mpfr_t centery, const mpfr_t radius, double max_glitch, int max_blob)
 Find a new reference for a possibly glitched image.

Detailed Description

Algorithms for finding new reference points.

Definition in file find_ref.c.

Function Documentation

enum find_ref_t find_ref ( struct ref_set refs,
struct blob_set blobset,
int  width,
int  height,
const mpfr_t  centerx,
const mpfr_t  centery,
const mpfr_t  radius,
double  max_glitch,
int  max_blob 

Find a new reference for a possibly glitched image.

The new reference is inserted into the ref_set, failure or success is signalled by return.

Definition at line 26 of file find_ref.c.

References blob_set_contains(), blob_set_insert(), blob::count, find_blobs1(), find_blobs2(), find_ref_complete, find_ref_failure, find_ref_success, blob::i, image_get_glitched(), blob::j, LOG_INFO, log_message, pixel_coordinate(), ref_set_contains(), and ref_set_insert().

Referenced by render_display().

+ Here is the call graph for this function:

+ Here is the caller graph for this function: