Blender V4.3
tracking_detect.cc File Reference
#include "DNA_gpencil_legacy_types.h"
#include "DNA_movieclip_types.h"
#include "DNA_object_types.h"
#include "BLI_utildefines.h"
#include "BKE_tracking.h"
#include "IMB_imbuf_types.hh"
#include "libmv-capi.h"

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 136 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 157 of file tracking_detect.cc.

References LIBMV_DETECTOR_HARRIS, options, and run_configured_detector().

Referenced by detect_features_exec().

◆ check_point_in_layer()

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

◆ check_point_in_stroke()

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

Definition at line 24 of file tracking_detect.cc.

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

Referenced by check_point_in_layer().

◆ detect_retrieve_libmv_features()

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

◆ run_configured_detector()

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