|
Blender V4.3
|
#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) |
This file contains blender-side implementation of feature detection.
Definition in file tracking_detect.cc.
| 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().
| 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().
Definition at line 51 of file tracking_detect.cc.
References check_point_in_stroke(), ListBase::first, bGPDframe::next, bGPDstroke::next, and bGPDframe::strokes.
Referenced by detect_retrieve_libmv_features().
|
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().
|
static |
Definition at line 72 of file tracking_detect.cc.
References BKE_tracking_track_add(), check_point_in_layer(), MovieTrackingTrack::flag, libmv_countFeatures(), libmv_getFeature(), MovieTrackingTrack::pat_flag, MovieTrackingTrack::search_flag, SELECT, size(), x, and y.
Referenced by run_configured_detector().
|
static |
Definition at line 111 of file tracking_detect.cc.
References ImBuf::byte_buffer, ImBufByteBuffer::data, ImBufFloatBuffer::data, detect_retrieve_libmv_features(), ImBuf::float_buffer, libmv_detectFeaturesByte(), libmv_detectFeaturesFloat(), libmv_featuresDestroy(), options, ImBuf::x, and ImBuf::y.
Referenced by BKE_tracking_detect_fast(), and BKE_tracking_detect_harris().