Commit 49eda702f7a843da3f65ead4a91bd18fde99c5c5
1 parent
3b2c4407
started janus gallery implementation
Showing
2 changed files
with
12 additions
and
1 deletions
openbr/janus.cpp
| @@ -112,3 +112,14 @@ janus_error janus_verify(const janus_template a, const janus_template b, float * | @@ -112,3 +112,14 @@ janus_error janus_verify(const janus_template a, const janus_template b, float * | ||
| 112 | *similarity = a_templates * b_templates / dist; | 112 | *similarity = a_templates * b_templates / dist; |
| 113 | return JANUS_SUCCESS; | 113 | return JANUS_SUCCESS; |
| 114 | } | 114 | } |
| 115 | + | ||
| 116 | +struct janus_incomplete_gallery_type | ||
| 117 | +{ | ||
| 118 | + QList< QPair<janus_template, janus_template_id> > templates; | ||
| 119 | +}; | ||
| 120 | + | ||
| 121 | +janus_error janus_initialize_gallery(janus_incomplete_gallery *incomplete_gallery) | ||
| 122 | +{ | ||
| 123 | + *incomplete_gallery = new janus_incomplete_gallery_type(); | ||
| 124 | + return JANUS_SUCCESS; | ||
| 125 | +} |