public void ProduceThresholdImage() { HueLow = (int)(tBar_HLo.Value); HueHigh = (int)tBar_HHi.Value; SatLow = (int)tBar_SLo.Value; SatHigh = (int)tBar_SHi.Value; ValLow = (int)tBar_VLo.Value; ValHigh = (int)tBar_VHi.Value; PX = (int)tBar_PX.Value; IX = (int)tBar_IX.Value; DX = (int)tBar_DX.Value; PY = (int)tBar_PY.Value; IY = (int)tBar_IY.Value; DY = (int)tBar_DY.Value; SetPointX = (int)tBar_SetPointX.Value; SetPointY = (int)tBar_SetPointY.Value; tbl_HueLow.Text = HueLow.ToString(); tbl_HueHigh.Text = HueHigh.ToString(); tbl_SatLow.Text = SatLow.ToString(); tbl_SatHigh.Text = SatHigh.ToString(); tbl_ValLow.Text = ValLow.ToString(); tbl_ValHigh.Text = ValHigh.ToString(); tbl_PX.Text = PX.ToString(); tbl_IX.Text = IX.ToString(); tbl_DX.Text = DX.ToString(); tbl_PY.Text = PY.ToString(); tbl_IY.Text = IY.ToString(); tbl_DY.Text = DY.ToString(); tbl_SetPointX.Text = SetPointX.ToString(); tbl_SetPointY.Text = SetPointY.ToString(); }
public override string ToString() { string result = string.Format("Equation:\ny''[x] + {0} * y'[x] + {1} * y[x] = {2}\n", PX.ToString(), QX.ToString(), FX.ToString()); result += string.Format("Range: [{0}, {1}]\n", Math.Round(Boundaries.Key, 2), Math.Round(Boundaries.Value, 2)); result += string.Format("Conditions:\n{0} * y[{1}] + {2} * y'[{1}] = {3}\n", alpha0, a, alpha1, A); result += string.Format("{0} * y[{1}] + {2} * y'[{1}] = {3}\n", betta0, b, betta1, B); return(result); }
public string featuresToString() { String features = ""; String SrcIP2 = ""; String DestIP2 = ""; String SrcMAC2 = ""; String DestMAC2 = ""; Utilities convertor = new Utilities(); if (SrcMAC != null) { SrcMAC2 = convertor.convertMACtoString(SrcMAC); } if (DestMAC != null) { DestMAC2 = convertor.convertMACtoString(DestMAC); } //DestMAC[0].ToString() + "-" + DestMAC[1].ToString() + "-" + DestMAC[2].ToString() + "-" + DestMAC[3].ToString()+ "-" + DestMAC[4].ToString() + "-" + DestMAC[5].ToString(); if (SrcIP != null) { SrcIP2 = convertor.convertIPtoString(SrcIP); } //SrcIP[0].ToString() + "." + SrcIP[1].ToString() + "." + SrcIP[2].ToString()+"." + SrcIP[3].ToString(); if (DestIP != null) { DestIP2 = convertor.convertIPtoString(DestIP); } features += SrcMAC2 + "," + DestMAC2 + "," + SrcIP2 + "," + DestIP2 + "," + SrcPort.ToString() + "," + DestPort.ToString() + "," + Protocol.ToString() + "," + TBT.ToString() + "," + FPS.ToString() + "," + APL.ToString() + "," + AB.ToString() + "," + BS.ToString() + "," + PS.ToString() + "," + DPL.ToString() + "," + PPS.ToString() + "," + PV.ToString() + "," + PX.ToString() + "," + NNP.ToString() + "," + NSP.ToString() + "," + PSP.ToString() + "," + Duration.ToString() + "," + this.Type.ToString() + "," + IOPR + "," + AIT + "," + Reconnect; return(features); }