示例#1
0
        public FilterResultDTO FilterTree([FromBody] PictureDTO picture)
        {
            var bmp = picture.getImage();
            var img = new Image <Bgr, byte>(bmp);

            var ret = new FilterResultDTO();

            ret.

            return(null);
        }
示例#2
0
        internal void detectFeatureInPictureDTO(ref PictureDTO picture, FilterResultDTO.CaracteristicType filterType)
        {
            var filter = ImageFilters.FirstOrDefault(p => p.FilterType.Equals(filterType));

            if (filter == null)
            {
                return;
            }

            var pictureBitmap = picture.getImage();
            var img           = new Image <Bgr, byte>(pictureBitmap);
            var result        = filter.filterImage(img);

            result.imageID = picture.imageID;
            result.panoID  = picture.panoID;
            if (picture.filterResults == null)
            {
                picture.filterResults = new List <FilterResultDTO>();
            }
            picture.filterResults.Add(result);
            img.Dispose();
            pictureBitmap.Dispose();
        }