Algorithms for finding new reference points. More...
Go to the source code of this file.
Enumerations | |
enum | find_ref_t { find_ref_failure = -1, find_ref_complete = 0, find_ref_success = 1 } |
The things that can occur when reference finding. More... |
Functions | |
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. |
Algorithms for finding new reference points.
Definition in file find_ref.h.
enum find_ref_t |
The things that can occur when reference finding.
find_ref_failure |
There are glitches but no new reference could be found. |
find_ref_complete |
There are very few glitches, so the image is complete. |
find_ref_success |
A new reference was inserted into the ref_set. |
Definition at line 19 of file find_ref.h.
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().