diff options
author | Your Name <you@example.com> | 2021-08-17 16:29:44 -0400 |
---|---|---|
committer | Your Name <you@example.com> | 2021-08-17 16:29:44 -0400 |
commit | e4ec24000b7ed45490eaa988c94546f480114933 (patch) | |
tree | ed8a9bb992c2ffc3e49fdec2abd478d1c07f90e2 /src/labeller.h | |
parent | ab5e941dcaedcf2cc896eed1ea257c59780fdb59 (diff) | |
download | annotator-e4ec24000b7ed45490eaa988c94546f480114933.tar.gz annotator-e4ec24000b7ed45490eaa988c94546f480114933.tar.bz2 annotator-e4ec24000b7ed45490eaa988c94546f480114933.zip |
Finished rectangle annotation code
Diffstat (limited to 'src/labeller.h')
-rw-r--r-- | src/labeller.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/labeller.h b/src/labeller.h index cf108f5..37a2eda 100644 --- a/src/labeller.h +++ b/src/labeller.h @@ -13,6 +13,9 @@ namespace backend { bool nonzero() const { return (x1 != 0 || x1 != 0 || y1 != 0 || y2 != 0); } + std::string string() { + return std::to_string(x1) + "," + std::to_string(y1) + "," + std::to_string(x2) + "," + std::to_string(y2); + } }; struct label { |