Exemplo n.º 1
0
 public Operation(PicesRaster.OperationType _op,
                  PicesRaster.MaskType _mt
                  )
 {
     operation = _op;
     mask      = _mt;
     maskSize  = PicesRaster.MaskSize(_mt);
 }
Exemplo n.º 2
0
 public Operation(PicesRaster.OperationType _op,
                  PicesRaster.MaskType _mt,
                  uint _thLowerBound,
                  uint _thUpperBound
                  )
 {
     operation    = _op;
     mask         = _mt;
     maskSize     = PicesRaster.MaskSize(_mt);
     thLowerBound = _thLowerBound;
     thUpperBound = _thUpperBound;
 }
Exemplo n.º 3
0
 public Operation(PicesRaster.OperationType _op,
                  PicesRaster.MaskType _mt,
                  float _lowerBound,
                  float _upperBound
                  )
 {
     operation  = _op;
     mask       = _mt;
     maskSize   = PicesRaster.MaskSize(_mt);
     lowerBound = _lowerBound;
     upperBound = _upperBound;
 }
Exemplo n.º 4
0
        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 */