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

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

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

                // create and apply filter
                FrequencyFilter filter = new FrequencyFilter(form.OutputRange);
                filter.Apply(image);

                UpdateNewImage( );
            }
        }
Beispiel #2
0
        // Frequency filter
        private void frequencyFilterFourierItem_Click( object sender, System.EventArgs e )
        {
            FrequencyFilterForm form = new FrequencyFilterForm( );

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

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

                // create and apply filter
                FrequencyFilter filter = new FrequencyFilter( form.OutputRange );
                filter.Apply( image );

                UpdateNewImage( );
            }
        }