Typo in Semantic Advanced Tutorial

There looks to be a typo in the Advanced segmentation tutorial.

should the name be “sky” lowercase. When I changed this it worked.

    private void OnSemanticsBufferUpdated(ContextAwarenessStreamUpdatedArgs<ISemanticBuffer> args)

        //get the current buffer
        ISemanticBuffer semanticBuffer = args.Sender.AwarenessBuffer;
        //get the index for sky
        int channel = semanticBuffer.GetChannelIndex("Sky");

                ref _semanticTexture, channel

Thanks for finding this. Yes, I believe the channel index string should be lower-case. I’ll follow-up and update the tutorial accordingly.

1 Like