Some fixing on the semantic segmentation

This commit is contained in:
nsubiron 2017-04-21 14:49:21 +02:00
parent f11870f32a
commit 7e46bd0e60
2 changed files with 8 additions and 4 deletions

View File

@ -16,6 +16,7 @@ enum class Label : uint8
Cars = 20,
Poles = 30,
Roads = 40,
Other = 50,
};
template <typename T>
@ -45,13 +46,16 @@ void ATagger::PostEditChangeProperty(FPropertyChangedEvent& PropertyChangedEvent
static Label GetLabel(const FString &str) {
if (str == "Buildings")
return Label::Buildings;
if (str == "Vehicles")
else if (str == "Vehicles")
return Label::Cars;
if (str == "Roads")
else if (str == "Roads")
return Label::Roads;
if (str == "Props")
else if (str == "Pole")
return Label::Poles;
return Label::None;
else if (str == "Props")
return Label::Other;
else
return Label::None;
}
static void setStencilValue(UPrimitiveComponent *comp, const Label &label) {