diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-10-08 17:53:59 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-01-28 13:37:19 +0400 |
commit | 9178dc9d384f18ab2f23656fb6b01a3b444526ef (patch) | |
tree | 7ca0ded6874ce96c9ac7747dca790b0a12ae5e90 /source/blender/blenkernel/BKE_tracking.h | |
parent | f194ab765996cb9830da2396f28f1ddad1778d0b (diff) |
Rework detector API and implement Harris detector
Switch the detector API to a single function which accepts
a float image and detector options. This makes usage of
feature detection more unified across different algorithms.
Options structure is pretty much straightforward and contains
detector to be used and all the detector-specific settings.
Also implemented Harris feature detection algorithm which
is not as fast as FAST one but is expected to detect more
robust feature points. It is also likely that less features
are detected, but better quality than quantity.
Blender will now use Harris detector by default, later we'll
remove FAST detector.
Diffstat (limited to 'source/blender/blenkernel/BKE_tracking.h')
-rw-r--r-- | source/blender/blenkernel/BKE_tracking.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_tracking.h b/source/blender/blenkernel/BKE_tracking.h index 9936416847b..62149bbaf88 100644 --- a/source/blender/blenkernel/BKE_tracking.h +++ b/source/blender/blenkernel/BKE_tracking.h @@ -242,6 +242,10 @@ void BKE_tracking_detect_fast(struct MovieTracking *tracking, struct ListBase *t int framenr, int margin, int min_trackness, int min_distance, struct bGPDlayer *layer, bool place_outside_layer); +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); + /* **** 2D stabilization **** */ void BKE_tracking_stabilization_data_get(struct MovieTracking *tracking, int framenr, int width, int height, float translation[2], float *scale, float *angle); |