In this article we will see how we can do Gaussian filtering in mahotas. For this we are going to use the fluorescent microscopy image from a nuclear segmentation benchmark. We can get the image with the help of command given below
A Gaussian filter is a linear filter. It’s usually used to blur the image or to reduce noise. If you use two of them and subtract, you can use them for “unsharp masking” (edge detection). The Gaussian filter alone will blur edges and reduce contrast.
Below is the nuclear_image
In order to do this we will use
Syntax : mahotas.gaussian_filter(nuclear, 20)
Argument : It takes numpy.ndarray object as argument and a integer
Return : It returns numpy.ndarray object
Note : The input of the gaussian filter should be the filtered image object
In order to filter the image we will take the image object which is numpy.ndarray and filter it with the help of indexing, below is the command to do this
iamge = image[:, :, 0]
Example 1 :
- Mahotas – Edges using Difference of Gaussian for binary image
- Mahotas - Filtering Region
- Mahotas - Filtering Labels
- Gaussian Filter Generation in C++
- Node Jimp | Gaussian
- ML | Variational Bayesian Inference for Gaussian Mixture
- Python - Inverse Gaussian Distribution in Statistics
- Python - Normal Inverse Gaussian Distribution in Statistics
- Python - Reciprocal Inverse Gaussian Distribution in Statistics
- Nodejs | GM gaussian() Function
- How to generate 2-D Gaussian array using NumPy?
- Filtering Images based on size attributes in Python
- Python | Filtering data with Pandas .query() method
- NLP | Training a tokenizer and filtering stopwords in a sentence
- NLP | Filtering Insignificant Words
- Python | Bilateral Filtering
- Spatial Filtering and its Types
- Python - Sharpen and blur filtering using pgmagick
- Python - Filtering text using Enchant
- Mahotas - Re-Labeling
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.