private void HW_Filter_MeanThenSphere(object sender, EventArgs e) { int nWeight = GetIntInput(); Console.WriteLine($"MeanThenSphere"); m_Bitmap = StockFilters.MeanRemovalThenSphere(m_Bitmap, nWeight); this.Invalidate(); }
private void HW_Filter_SphereOffCenter(object sender, EventArgs e) { int xMid = GetIntInput(); int yMid = GetIntInput(); Console.WriteLine($"SphereOffCenter"); PixelPoint midPoint = new PixelPoint(xMid, yMid); m_Bitmap = StockFilters.Sphere(m_Bitmap, midPoint); this.Invalidate(); }
private void HW_Filter_MeanThenSphereOffCenter(object sender, EventArgs e) { int nWeight = GetIntInput(); int xMid = GetIntInput(); int yMid = GetIntInput(); PixelPoint midPoint = new PixelPoint(xMid, yMid); Console.WriteLine($"MeanThenSphereOffCenter{nWeight}:({xMid},{yMid})"); MeanSphereConfig msConfig = new MeanSphereConfig(nWeight, PaddingType.Full, midPoint); m_Bitmap = StockFilters.MeanRemovalThenSphere(m_Bitmap, msConfig); this.Invalidate(); }
public IHttpActionResult Get([FromBody] StockFilters stockFilters) { IHttpActionResult result; try { List <int> storeIds = stockFilters.Stores?.Any() ?? false?stockFilters.Stores.Select(x => x.Id).ToList() : null; result = Ok(this.stockService.Get(context, storeIds, stockFilters.ProductName).MapAll(true)); } catch (Exception ex) { result = BadRequest(ex.Message); } return(result); }
private void HW_Filter_Sphere(object sender, EventArgs e) { Console.WriteLine($"Sphere"); m_Bitmap = StockFilters.Sphere(m_Bitmap); this.Invalidate(); }