Example #1
0
        // Frequency filter
        private void frequencyFilterFourierItem_Click(object sender, System.EventArgs e)
        {
            FrequencyFilter form = new FrequencyFilter( );

            form.InputRange  = new IntRange(0, width >> 1);
            form.OutputRange = new IntRange(0, width >> 1);

            if (form.ShowDialog( ) == DialogResult.OK)
            {
                backup = (ComplexImage)image.Clone( );

                image.FrequencyFilter(form.OutputRange);
                UpdateNewImage( );
            }
        }
        // Frequency filter
        private void frequencyFilterFourierItem_Click( object sender, System.EventArgs e )
        {
            FrequencyFilter form = new FrequencyFilter( );

            form.InputRange = new IntRange( 0, width >> 1 );
            form.OutputRange = new IntRange( 0, width >> 1 );

            if ( form.ShowDialog( ) == DialogResult.OK )
            {
                backup = (ComplexImage) image.Clone( );

                image.FrequencyFilter( form.OutputRange );
                UpdateNewImage( );
            }
        }