This commit is contained in:
Dennis Eichhorn 2022-09-06 10:12:41 +02:00
parent bad0b9c3e0
commit 40efcb8a66
3 changed files with 4 additions and 3 deletions

View File

@ -63,6 +63,7 @@ namespace Image {
// Approximate polygon
/* Question: we probably don't want a polygon all the time?! */
// @todo bad implementation, focus on single square
std::vector<std::vector<cv::Point> > contoursDraw (contoursArea.size());
for (int i = 0; i < contoursArea.size(); ++i){
cv::approxPolyDP(cv::Mat(contoursArea[i]), contoursDraw[i], 40, true);

View File

@ -22,7 +22,7 @@ namespace Utils {
public:
static inline
char* get_arg (const char *id, char **argv, int length)
char* get_arg(const char *id, char **argv, int length)
{
if (Utils::StringUtils::is_number(id)) {
return argv[atoi(id)];
@ -38,7 +38,7 @@ namespace Utils {
}
static inline
bool has_arg (const char *id, char **argv, int length)
bool has_arg(const char *id, char **argv, int length)
{
for (int i = 0; i < length; ++i) {
if (strcmp(id, argv[i]) == 0) {

View File

@ -19,7 +19,7 @@ namespace Utils {
public:
static inline
bool is_number (const char *s)
bool is_number(const char *s)
{
while (*s != '\0') {
if (!isdigit(*s)) {