Blender
V3.3
|
#include "DNA_gpencil_types.h"
#include "DNA_movieclip_types.h"
#include "DNA_object_types.h"
#include "BLI_utildefines.h"
#include "BKE_tracking.h"
#include "IMB_imbuf_types.h"
#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, struct 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) |
This file contains blender-side implementation of feature detection.
Definition in file tracking_detect.c.
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 135 of file tracking_detect.c.
References LIBMV_DETECTOR_FAST, options, and run_configured_detector().
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 156 of file tracking_detect.c.
References LIBMV_DETECTOR_HARRIS, options, run_configured_detector(), and threshold.
Referenced by detect_features_exec().
Definition at line 50 of file tracking_detect.c.
References check_point_in_stroke(), ListBase::first, bGPDlayer::frames, bGPDstroke::next, bGPDframe::next, bGPDframe::strokes, x, and y.
Referenced by detect_retrieve_libmv_features().
|
static |
Definition at line 23 of file tracking_detect.c.
References count, bGPDstroke::points, blender::meshintersect::prev(), bGPDstroke::totpoints, x, y, and bGPDspoint::y.
Referenced by check_point_in_layer().
|
static |
Definition at line 71 of file tracking_detect.c.
References Freestyle::a, BKE_tracking_track_add(), check_point_in_layer(), MovieTrackingTrack::flag, height, libmv_countFeatures(), libmv_getFeature(), MovieTrackingTrack::pat_flag, MovieTrackingTrack::search_flag, SELECT, size(), width, x, and y.
Referenced by run_configured_detector().
|
static |
Definition at line 110 of file tracking_detect.c.
References detect_retrieve_libmv_features(), libmv_Features::features, libmv_detectFeaturesByte(), libmv_detectFeaturesFloat(), libmv_featuresDestroy(), NULL, options, ImBuf::rect, ImBuf::rect_float, ImBuf::x, and ImBuf::y.
Referenced by BKE_tracking_detect_fast(), and BKE_tracking_detect_harris().