Skip to content

Commit 3d1ed91

Browse files
committed
Make sky color actually work in semantic segmentation
1 parent 0c79e0c commit 3d1ed91

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

com.unity.perception/Runtime/GroundTruth/Labelers/SemanticSegmentation/SemanticSegmentationLabeler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ NativeArray<Color32> GetSegmentationColorForEachLabeledObject()
181181
{
182182
var labeledObjectColors = new NativeArray<Color32>(
183183
LabelManager.singleton.instanceIds.Length, Allocator.Persistent);
184-
labeledObjectColors[0] = new Color32(0, 0, 0, 255);
184+
labeledObjectColors[0] = labelConfig.skyColor;
185185

186186
var i = 1;
187187
foreach (var labeledObject in LabelManager.singleton.registeredLabels)

com.unity.perception/Tests/Runtime/GroundTruthTests/SegmentationGroundTruthTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public class SegmentationPassTests : GroundTruthTestBase
5858
{
5959
static readonly Color32 k_SemanticPixelValue = new Color32(10, 20, 30, Byte.MaxValue);
6060
static readonly Color32 k_InstanceSegmentationPixelValue = new Color32(255, 0, 0, 255);
61-
static readonly Color32 k_SkyValue = new Color32(0, 0, 0, 255);
61+
static readonly Color32 k_SkyValue = new Color32(1, 1, 1, 255);
6262

6363
public enum SegmentationKind
6464
{

0 commit comments

Comments
 (0)