Blender V5.0
tracking_detect.cc File Reference

Go to the source code of this file.

Functions

static bool check_point_in_stroke (bGPDstroke *stroke, float x, float y)
static bool check_point_in_layer (bGPDlayer *layer, float x, float y)
static void detect_retrieve_libmv_features (MovieTracking *tracking, ListBase *tracksbase, libmv_Features *features, int framenr, int width, int height, bGPDlayer *layer, bool place_outside_layer)
static void run_configured_detector (MovieTracking *tracking, ListBase *tracksbase, ImBuf *ibuf, int framenr, bGPDlayer *layer, bool place_outside_layer, libmv_DetectOptions *options)
void BKE_tracking_detect_fast (MovieTracking *tracking, ListBase *tracksbase, ImBuf *ibuf, int framenr, int margin, int min_trackness, int min_distance, bGPDlayer *layer, bool place_outside_layer)
void BKE_tracking_detect_harris (MovieTracking *tracking, ListBase *tracksbase, ImBuf *ibuf, int framenr, int margin, float threshold, int min_distance, bGPDlayer *layer, bool place_outside_layer)

Detailed Description

This file contains blender-side implementation of feature detection.

Definition in file tracking_detect.cc.

Function Documentation

◆ BKE_tracking_detect_fast()

void BKE_tracking_detect_fast ( struct MovieTracking * tracking,
struct ListBase * tracksbase,
struct ImBuf * ibuf,
int framenr,
int margin,
int min_trackness,
int min_distance,
struct bGPDlayer * layer,
bool place_outside_layer )

Detect features using FAST detector.

Definition at line 134 of file tracking_detect.cc.

References LIBMV_DETECTOR_FAST, options, and run_configured_detector().

◆ BKE_tracking_detect_harris()

void BKE_tracking_detect_harris ( struct MovieTracking * tracking,
struct ListBase * tracksbase,
struct ImBuf * ibuf,
int framenr,
int margin,
float threshold,
int min_distance,
struct bGPDlayer * layer,
bool place_outside_layer )

Detect features using Harris detector.

Definition at line 155 of file tracking_detect.cc.

References LIBMV_DETECTOR_HARRIS, options, and run_configured_detector().

Referenced by detect_features_exec().

◆ check_point_in_layer()

bool check_point_in_layer ( bGPDlayer * layer,
float x,
float y )
static

◆ check_point_in_stroke()

bool check_point_in_stroke ( bGPDstroke * stroke,
float x,
float y )
static

Definition at line 22 of file tracking_detect.cc.

References count, i, bGPDstroke::points, bGPDstroke::totpoints, true, x, bGPDspoint::y, and y.

Referenced by check_point_in_layer().

◆ detect_retrieve_libmv_features()

void detect_retrieve_libmv_features ( MovieTracking * tracking,
ListBase * tracksbase,
libmv_Features * features,
int framenr,
int width,
int height,
bGPDlayer * layer,
bool place_outside_layer )
static

◆ run_configured_detector()

void run_configured_detector ( MovieTracking * tracking,
ListBase * tracksbase,
ImBuf * ibuf,
int framenr,
bGPDlayer * layer,
bool place_outside_layer,
libmv_DetectOptions * options )
static