public FilterResultDTO FilterTree([FromBody] PictureDTO picture) { var bmp = picture.getImage(); var img = new Image <Bgr, byte>(bmp); var ret = new FilterResultDTO(); ret. return(null); }
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(); }