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"
Go to the source code of this file.
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.c.
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().