public void SelectBackground() { bool[,,] black = m_data.selectBlackPixels((byte)threshold); //threshold = threshold - 20; m_data.AddSegment(black); m_legendScript.LoadLegendFromSegmentationHandler(); }
// This runs in the main thread protected override void OnFinished() { Debug.LogError("entered OnFinished for flood fill"); m_data.AddSegment(visited); m_segmentationHandler.FinishedSegmentationCallback(); }