Skip to content

Commit

Permalink
Add unknown label
Browse files Browse the repository at this point in the history
  • Loading branch information
ggrzeczkowicz committed Nov 14, 2023
1 parent fc3df24 commit 4bf8561
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions label.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ struct Label {
Label(unsigned char value, std::string label, unsigned char red, unsigned char green, unsigned char blue): value(value), label(label), red(red), green(green), blue(blue) {}
};

static std::array<Label, 12> LABELS {
static std::array<Label, 13> LABELS {
Label(0, "other", 255, 255, 255),
Label(1, "bare ground", 100, 50, 0),
Label(2, "low vegetation", 0, 250, 50),
Expand All @@ -27,9 +27,10 @@ static std::array<Label, 12> LABELS {
Label(8, "road", 100, 100, 100),
Label(9, "railways", 200, 100, 200),
Label(10, "swimming pool", 50, 150, 250),
Label(11, "rail crossing", 250, 150, 0)
Label(11, "rail crossing", 250, 150, 0),
Label(12, "unknown", 250, 250, 150)
};

const unsigned char LABEL_OTHER = 0;
const unsigned char LABEL_OTHER = 12;

#endif /* !LABEL_H_ */

0 comments on commit 4bf8561

Please sign in to comment.