示例#1
0
    private void Threshold2Changed(float threshold2Bar)
    {
        threshold2Value       = int.Parse(_threshold2MinValue.text) + threshold2Bar * (int.Parse(_threshold2MaxValue.text) - int.Parse(_threshold2MinValue.text));
        _threshold2Value.text = threshold2Value.ToString();

        /*if (threshold2Listeners.Count > 0) {
         *  foreach (TrackbarListener l in threshold2Listeners) {
         *      l.Callback(threshold2Value);
         *  }
         * }*/
        core.SetKernelThreshold2((int)threshold2Value);
    }