public Operation(PicesRaster.OperationType _op, PicesRaster.MaskType _mt ) { operation = _op; mask = _mt; maskSize = PicesRaster.MaskSize(_mt); }
public Operation(PicesRaster.OperationType _op, PicesRaster.MaskType _mt, uint _thLowerBound, uint _thUpperBound ) { operation = _op; mask = _mt; maskSize = PicesRaster.MaskSize(_mt); thLowerBound = _thLowerBound; thUpperBound = _thUpperBound; }
public Operation(PicesRaster.OperationType _op, PicesRaster.MaskType _mt, float _lowerBound, float _upperBound ) { operation = _op; mask = _mt; maskSize = PicesRaster.MaskSize(_mt); lowerBound = _lowerBound; upperBound = _upperBound; }
private void AddOperation(PicesRaster.OperationType _operation) { PicesRaster.MaskType mt = PicesRaster.MaskTypeFromStr(MaskTypesComboBox.SelectedItem.ToString()); if (_operation == PicesRaster.OperationType.BandPass) { operations.Add(new Operation(_operation, mt, lowerBound, upperBound)); } else if (_operation == PicesRaster.OperationType.BinarizeTH) { operations.Add(new Operation(_operation, mt, thLowerBound, thUpperBound)); } else { operations.Add(new Operation(_operation, mt)); } UpdateOperationsList(); RePaintImage(); } /* AddOperation */