Esempio n. 1
0
        /// <summary>
        /// This is the method that actually does the work.
        /// </summary>
        /// <param name="DA">The DA object is used to retrieve from inputs and store in outputs.</param>
        protected override void SolveInstance(IGH_DataAccess DA)
        {
            Bitmap sourceImage = null;

            DA.GetData(0, ref sourceImage);
            double sigma = 1;

            DA.GetData(1, ref sigma);
            int range = 2;

            DA.GetData(2, ref range);

            DA.SetData(0, ImageFilter.BlurImage(sourceImage, Convert.ToSingle(sigma), range));
        }