private void Canny2Changed(float canny2Bar) { canny2Value = int.Parse(_canny2MinValue.text) + canny2Bar * (int.Parse(_canny2MaxValue.text) - int.Parse(_canny2MinValue.text)); _canny2Value.text = canny2Value.ToString(); /*if (canny2Listeners.Count > 0) { * foreach (TrackbarListener l in canny2Listeners) { * l.Callback(canny2Value); * } * }*/ core.SetCannyThreshold2((int)canny2Value); }