Use of Gaussian Filter to remove noise from Image

I am on the path of upskilling myself. Hence have started learning about Machine Learning, Computer Vision, Artificial Intelligence and all other related things. Here are the two videos that i did while learning Computer Vision. The first is experiment…


This content originally appeared on DEV Community and was authored by Somenath Mukhopadhyay

I am on the path of upskilling myself. Hence have started learning about Machine Learning, Computer Vision, Artificial Intelligence and all other related things. Here are the two videos that i did while learning Computer Vision. The first is experimenting the use of Gaussian Filter to remove noise using Octave. And the second is using the same principle but in the Android environment using OpenCV.

The code for Android which is responsible for showing the Noisy Image and the Clear Image (after applying Gaussian Filter) is as follow:

if (view.equals(mBtnShowNoisyImage)) {
    Bitmap bmp = BitmapFactory.decodeResource(getApplicationContext().getResources(), R.drawable.e);
    mImageView.setImageBitmap(bmp);
}

if (view.equals(mButtonShowClearImage)) {
    Mat m = null;
    try {
        m = Utils.loadResource(getApplicationContext(), R.drawable.e);
    } catch (IOException e) {
        e.printStackTrace();
    }

    Size s = new Size(7, 7);

    //Apply Gaussian Filter
    Imgproc.GaussianBlur(m, m, s, 2);
    double width = m.size().width;
    double height = m.size().height;

    Bitmap bmp = Bitmap.createBitmap((int) width, (int) height, Bitmap.Config.ARGB_8888);
    Utils.matToBitmap(m, bmp);

    mImageView.setImageBitmap(bmp);
}

Its a whole new experience that i am going through. Its more than just programming...


This content originally appeared on DEV Community and was authored by Somenath Mukhopadhyay


Print Share Comment Cite Upload Translate Updates
APA

Somenath Mukhopadhyay | Sciencx (2025-09-07T07:07:42+00:00) Use of Gaussian Filter to remove noise from Image. Retrieved from https://www.scien.cx/2025/09/07/use-of-gaussian-filter-to-remove-noise-from-image/

MLA
" » Use of Gaussian Filter to remove noise from Image." Somenath Mukhopadhyay | Sciencx - Sunday September 7, 2025, https://www.scien.cx/2025/09/07/use-of-gaussian-filter-to-remove-noise-from-image/
HARVARD
Somenath Mukhopadhyay | Sciencx Sunday September 7, 2025 » Use of Gaussian Filter to remove noise from Image., viewed ,<https://www.scien.cx/2025/09/07/use-of-gaussian-filter-to-remove-noise-from-image/>
VANCOUVER
Somenath Mukhopadhyay | Sciencx - » Use of Gaussian Filter to remove noise from Image. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2025/09/07/use-of-gaussian-filter-to-remove-noise-from-image/
CHICAGO
" » Use of Gaussian Filter to remove noise from Image." Somenath Mukhopadhyay | Sciencx - Accessed . https://www.scien.cx/2025/09/07/use-of-gaussian-filter-to-remove-noise-from-image/
IEEE
" » Use of Gaussian Filter to remove noise from Image." Somenath Mukhopadhyay | Sciencx [Online]. Available: https://www.scien.cx/2025/09/07/use-of-gaussian-filter-to-remove-noise-from-image/. [Accessed: ]
rf:citation
» Use of Gaussian Filter to remove noise from Image | Somenath Mukhopadhyay | Sciencx | https://www.scien.cx/2025/09/07/use-of-gaussian-filter-to-remove-noise-from-image/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.