Exemple #1
0
    private void Threshold1Changed(float threshold1Bar)
    {
        threshold1Value       = int.Parse(_threshold1MinValue.text) + threshold1Bar * (int.Parse(_threshold1MaxValue.text) - int.Parse(_threshold1MinValue.text));
        _threshold1Value.text = threshold1Value.ToString();

        /*if (threshold1Listeners.Count > 0) {
         *  foreach (TrackbarListener l in threshold1Listeners) {
         *      l.Callback(threshold1Value);
         *  }
         * }*/
        core.SetKernelThreshold1((int)threshold1Value);
    }