예제 #1
0
 private void setOperatorToolStripMenuItem_Click(object sender, EventArgs e)
 {
     frmOptions formOptions = new frmOptions();
     formOptions.ShowDialog();
 }
예제 #2
0
        public Bitmap MainFilter(Bitmap b, int nWeight)
        {
            ConvMatrix m = new ConvMatrix();
            frmOptions opcije = new frmOptions();
   
            m.TopLeft = frmOptions.values.topL; 
            m.TopMid = frmOptions.values.topM; 
            m.TopRight = frmOptions.values.topR;

            m.MidLeft = frmOptions.values.midL; 
            m.Pixel = frmOptions.values.midM; 
            m.MidRight = frmOptions.values.midR;

            m.BottomLeft = frmOptions.values.botL;
            m.BottomMid = frmOptions.values.botM;
            m.BottomRight = frmOptions.values.botR;


            m.Factor = 1;
            m.Offset = 0;

            return Conv3x3(b, m);
        }