39 if (clip->
gpd ==
nullptr) {
66 int place_outside_layer = 0;
75 place_outside_layer = placement == 2;
87 threshold / 100000.0f,
103 {0,
"FRAME", 0,
"Whole Frame",
"Place markers across the whole frame"},
107 "Inside Annotated Area",
108 "Place markers only inside areas outlined with the Annotation tool"},
112 "Outside Annotated Area",
113 "Place markers only outside areas outlined with the Annotation tool"},
114 {0,
nullptr, 0,
nullptr,
nullptr},
118 ot->
name =
"Detect Features";
119 ot->
description =
"Automatically detect features and place markers to track";
120 ot->
idname =
"CLIP_OT_detect_features";
131 ot->
srna,
"placement", placement_items, 0,
"Placement",
"Placement for detected features");
138 "Only features further than margin pixels from the image "
139 "edges are considered",
148 "Threshold level to consider feature good enough for tracking",
157 "Minimal distance accepted between two features",
int RNA_enum_get(PointerRNA *ptr, const char *name)
MovieTrackingObject * BKE_tracking_object_get_active(const MovieTracking *tracking)
SpaceClip * CTX_wm_space_clip(const bContext *C)
PropertyRNA * RNA_def_enum(StructOrFunctionRNA *cont_, const char *identifier, const EnumPropertyItem *items, const int default_value, const char *ui_name, const char *ui_description)
int RNA_int_get(PointerRNA *ptr, const char *name)
void ed_tracking_deselect_all_tracks(ListBaseT< MovieTrackingTrack > *tracks_base)
void BKE_tracking_dopesheet_tag_update(MovieTracking *tracking)
void CLIP_OT_detect_features(wmOperatorType *ot)
void IMB_freeImBuf(ImBuf *ibuf)
void BKE_report(ReportList *reports, eReportType type, const char *message)
static bGPDlayer * detect_get_layer(MovieClip *clip)
int ED_space_clip_get_clip_frame_number(const SpaceClip *sc)
void WM_event_add_notifier(const bContext *C, uint type, void *reference)
PropertyRNA * RNA_def_int(StructOrFunctionRNA *cont_, const char *identifier, const int default_value, const int hardmin, const int hardmax, const char *ui_name, const char *ui_description, const int softmin, const int softmax)
MovieClip * ED_space_clip_get_clip(const SpaceClip *sc)
ImBuf * BKE_movieclip_get_ibuf_flag(MovieClip *clip, const MovieClipUser *user, MovieClipFlag flag, MovieClipCacheFlag cache_flag)
bool ED_space_clip_tracking_poll(bContext *C)
static wmOperatorStatus detect_features_exec(bContext *C, wmOperator *op)
void BKE_tracking_detect_harris(MovieTracking *tracking, ListBaseT< MovieTrackingTrack > *tracksbase, ImBuf *ibuf, int framenr, int margin, float threshold, int min_distance, bGPDlayer *layer, bool place_outside_layer)
PropertyRNA * RNA_def_float(StructOrFunctionRNA *cont_, const char *identifier, const float default_value, const float hardmin, const float hardmax, const char *ui_name, const char *ui_description, const float softmin, const float softmax)
float RNA_float_get(PointerRNA *ptr, const char *name)
struct MovieTracking tracking
ListBaseT< MovieTrackingTrack > tracks
struct MovieClipUser user
ListBaseT< bGPDlayer > layers
wmOperatorStatus(*) exec(bContext *C, wmOperator *op) ATTR_WARN_UNUSED_RESULT
bool(*) poll(bContext *C) ATTR_WARN_UNUSED_RESULT
struct ReportList * reports