Ejemplo n.º 1
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="rInput"></param>
 /// <param name="tOp"></param>
 /// <param name="rThresh"></param>
 /// <param name="rOutputRaster"></param>
 public Threshold(Raster rInput, RasterOperators.ThresholdOps tOp,
                  Raster rThresh, Raster rOutputRaster) :
     base(new List <Raster> {
     rInput, rThresh
 }, new List <Raster> {
     rOutputRaster
 })
 {
     _botOp  = tOp;
     bTwoOps = false;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="rInput"></param>
 /// <param name="tOp"></param>
 /// <param name="fThresh"></param>
 /// <param name="rOutputRaster"></param>
 public Threshold(Raster rInput, RasterOperators.ThresholdOps tOp,
                  decimal fThresh, Raster rOutputRaster) :
     base(new List <Raster> {
     rInput
 }, new List <Raster> {
     rOutputRaster
 })
 {
     _botOp  = tOp;
     _botNum = (double)fThresh;
     bTwoOps = false;
 }
Ejemplo n.º 3
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="rInput"></param>
        /// <param name="tBottomOp"></param>
        /// <param name="fBottomThresh"></param>
        /// <param name="tTopOp"></param>
        /// <param name="fTopThresh"></param>
        /// <param name="rOutputRaster"></param>
        public Threshold(Raster rInput,
                         RasterOperators.ThresholdOps tBottomOp, decimal fBottomThresh,
                         RasterOperators.ThresholdOps tTopOp, decimal fTopThresh, Raster rOutputRaster) :
            base(new List <Raster> {
            rInput
        }, new List <Raster> {
            rOutputRaster
        })
        {
            if (tBottomOp == RasterOperators.ThresholdOps.LessThan ||
                tBottomOp == RasterOperators.ThresholdOps.LessThanOrEqual ||
                tTopOp == RasterOperators.ThresholdOps.GreaterThan ||
                tTopOp == RasterOperators.ThresholdOps.GreaterThanOrEqual)
            {
                throw new ArgumentOutOfRangeException("Invalid Operators chosen for thresholding");
            }

            _botOp  = tBottomOp;
            _botNum = (double)fBottomThresh;
            _topOp  = tTopOp;
            _topNum = (double)fTopThresh;
            bTwoOps = true;
        }
Ejemplo n.º 4
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="rInput"></param>
 /// <param name="tOp"></param>
 /// <param name="rThresh"></param>
 /// <param name="rOutputRaster"></param>
 public ThresholdAbs(Raster rInput, RasterOperators.ThresholdOps tOp,
                     Raster rThresh, Raster rOutputRaster) :
     base(rInput, tOp, rThresh, rOutputRaster)
 {
 }