Skip to main content

Questions tagged [morphological-operations]

Non-linear operators in Mathematical Morphology is the theory of using algebraic structure of lattices and geometrical analysis of structures, based on set theory, topology, and random functions. operators: Erosion, Dilation, Opening and Closing. Reconstruction filters, Connected filters, granulometries, watershed transformation, levelling, alternating sequential filters(ASFS), Duality, Idempotent filters, hierarchical analysis.

Filter by
Sorted by
Tagged with
1 vote
2 answers
70 views

What are good algorithms to smooth scanned text?

I have a document scanned on an old scanner. I'd like to smooth the letters to make them easier and more pleasant to read. I am not trying to do OCR, simply to make the document more legible. Some ...
SRobertJames's user avatar
4 votes
2 answers
129 views

Separating dominoes pieces from one another and counting them

I Have a picture of Dominoes on a table, which is noisy. I am trying to do the following: removing the background. counting how many dominoes pieces are there. identifying what each piece represent. ...
Sohaib Segueni's user avatar
1 vote
0 answers
220 views

Image processing pipeline for segmenting cell nuclei

I'm seeking a better image processing pipeline to essentially segment cell nuclei in fluorescence images. So far, I've tried a bunch of morphological operations, e.g. modifying this scikit-image ...
lanery's user avatar
  • 176
0 votes
1 answer
75 views

Erosion compotition rule $\left ( f \ominus g \right ) \ominus h = f \ominus \left (g \oplus h \right ) $

I want to prove that erosion of a signal by a function $g$ followed by erosion with another function $h$ is equivalent to erosion of the signal by the dilation of the two functions (Erosion property): ...
Rog Fed's user avatar
1 vote
1 answer
32 views

How to partition collagen into separate fibers?

I have a picture representing collagen fibers of a tissue: Image is binary consisting of a background (pixels with value 0) and white collagen (pixels with value 1). A zoomed in section of an image ...
mercury0114's user avatar
0 votes
0 answers
30 views

Amount of pixel eroded

Is there a definite relation between the kernel size and shape of a morphology change and the amount of pixels added or removed? I have a case where I have a segmented image, and I need to remove x ...
JTIM's user avatar
  • 101
2 votes
2 answers
396 views

Fast Morphological Erosion / Dilation with Variable Window Size

I want to perform the following operation on an image: consider a square window around every pixel, find the maximum value in this window, and replace the central pixel value with this maximum value. ...
EpsilonDelta's user avatar
2 votes
1 answer
1k views

Morphology - Why does the concept of opening and closing images exist when we already have erosion and dilation?

If we consider the closing operation of an image, we first dilate the image and then erode it. So, first we expand the foreground (white pixels) and and then we take away some part of the foreground. ...
skr's user avatar
  • 293
0 votes
1 answer
99 views

How does reconstruction function relate to watershed segmentation?

I'm trying to understand how watershed work by reading The Morphological Approach to Segmentation: The Watershed Transformation S. Beucher and F. Meyer This document mentions the reconstruction ...
Tuan Nguyen Dinh's user avatar
0 votes
0 answers
184 views

Improving credit card like image scan for OCR

OCR works best for black on white or binary images, where letters have sharp contours, no noise, and solid filling, i.e. they are nothing like this: For the curious it's a part of a document number ...
Rajish's user avatar
  • 101
0 votes
1 answer
3k views

removing vertical lines in grayscale images by thickness

Suppose we have a grayscale image that contains vertical lines. Now suppose that not all vertical lines are the same, some of them have different thickness. Question is, is there a way, in MATLAB or ...
Dan's user avatar
  • 70
3 votes
1 answer
100 views

Find the Mid Point of a Worm / Chain Like Object

I have a video of worm-like objects which move. They can move in a straight line, they can rotate in circles, they can move in a serpentine/winding/sinuous way. I need to track them. I already have ...
JalfredP's user avatar
  • 135
1 vote
1 answer
1k views

Counting pixel connectivity groups

How many 4-connected and 8-connected components are present in the binary image below? Using definition of connectivities from the same textbook "A connected component is a group of pixels that are ...
mega_creamery's user avatar
2 votes
1 answer
469 views

Algo Name: Detecting Elongated Shape in 2D Image by Convolution with Directed Lines

I am detecting a shape with roughly known orientation (obtained by using Hough line transform) in thresholded binary image by convolving the image with line with that orientation, and counting the ...
eudoxos's user avatar
  • 195
1 vote
0 answers
106 views

Edge linking by adaptive mathematical morphology

I'm trying to implement the Adaptive Morphological Edge-Linking Algorithm (Frank Y. Shih, Image Processing and Pattern Recognition: Fundamentals and Techniques, section 5.5.2 OR Article link). The ...
PhantomR's user avatar
  • 111
1 vote
1 answer
109 views

Morphological transformations for images with discrete values

I have a series of images in which the pixels take integer values corresponding to a classification. I'd like to try some morphological transformations (e.g. erosion, dilation) to remove noise and ...
Ellis Valentiner's user avatar
0 votes
0 answers
237 views

Fill Incomplete Holes in 3D Image of Corals

I'm trying to analyse a series of CT scans of coral samples, but am fairly new to this sort of image processing. The problem I've hit is that a lot of the coral is hollow (in the images), and even ...
chris_huh's user avatar
4 votes
2 answers
892 views

Granulometry by morphological opening and closing

I am trying to understand granulometry. I understand that it deals with determining the size distribution of particles in an image and uses the principles of opening and closing. I have a smoothed ...
DigiDude's user avatar
6 votes
2 answers
1k views

Segmentation of overlapping noisy parallelograms in a binary image

Edited. Previously this question was named "Segmentation of overlapping pulses in a binary spectrogram" and it was stated in slightly different way. I'm apologise to those users, who were affected by ...
Nikolai Popov's user avatar
2 votes
1 answer
387 views

Morphological Gradient Versus Linear Gradient in Image Processing

To obtain the gradient from an image, one can use a linear filter that for example is derrived from the derrivative of a gaussian. Then convolving the image with this linear filter gives you the ...
Tom's user avatar
  • 123
2 votes
1 answer
850 views

Gap Filling Contours / Lines

I have the following image: and I would like to fill in its contours (i.e. I would like to gap fill the lines in this image). I have tried a morphological closing, but using a rectangular kernel of ...
Alex Rothberg's user avatar
2 votes
1 answer
91 views

Using morphological operations for color images processing

Have you ever seen any articles about using morphological-like technique for denoising color images?
tty6's user avatar
  • 133
0 votes
2 answers
679 views

OCR (optical character recognition) for Indian languages - segmentation

Can any one help me in how to extract a table from the whole document image and segment it? I have done segmentation for the document image which has only text by using the projection profile. So ...
Bhavana's user avatar
  • 11
4 votes
4 answers
15k views

Best way to remove unwanted region from image

I am finding the techniques to remove unwanted regions (small dots) from image. I have an image that includes object and some unwanted region (small dots- see first image). I want to remove it. Hence, ...
John's user avatar
  • 585
1 vote
2 answers
3k views

Computations in Grayscale morphology dilation

I red this link, but unfortunately i still don't understand the process... By the way, Dilation process is performed by laying the structuring element H on the image I and sliding it across the image ...
Christina's user avatar
  • 239
1 vote
1 answer
779 views

Decomposition of **3D** structuring elements for morphological operations

I am struggling to implement a mathematical morphology toolset in an image processing package. I base my implementation on what I saw in MATLAB, and on several papers on the subject. There seems to ...
Jean-Yves's user avatar
  • 990
4 votes
2 answers
7k views

Uneven background subtraction: Rolling ball vs Disk tophat

A classical technique in still images (e.g. fluorescence microscopy images) to remove uneven illumination and isolate bright blobs is to use morphological operation such as the top-hat transform. For ...
Jean-Yves's user avatar
  • 990
2 votes
2 answers
7k views

OpenCV: Problem at creating a Skeleton of Lines

I need to get the lines from a photographie of a sheet of paper. While recherching, I came along this, where one answer referred to this blog entry. Now I am having trouble with this approach. I have ...
BlackMamba's user avatar
2 votes
0 answers
524 views

Finger print skeletonization without using matlab functions

I am trying to thin foreground pixels of a finger print until they are one pixel wide without using the built in bwmorph and thin operations. Can anyone explain to me how to write them in matlab ...
Rick Grimes's user avatar
3 votes
1 answer
185 views

Erosion in image

I don't if I am posting my question in the correct place. I have tried hard to solved it but I am unsuccessful. I have an structuring element shown below: ...
user2128318's user avatar
3 votes
1 answer
3k views

Image processing: how do I erode on boundary and dilate inside boundary?

I have an image that I am trying to process: I want two seamingly contradictory effects: I want to remove "holes" inside "the blob". That is I want all pixels inside the blob to be solid red. I want ...
Andy's user avatar
  • 1,783
2 votes
1 answer
695 views

How can i compute perimeter and area of a skeletonized circle?

In opencv if i use findcontours function, i get contours and i can compute area, perimeter, convex hull. if i use a Skeletonized image of a circle how can i compute perimeter,area, convex hull of the ...
postgres's user avatar
  • 253
3 votes
1 answer
7k views

Find branches in skeleton image using matlab

I have a skeleton image. I am able to detect branchpoints, endpoints and able to label image using BWMorph, BWLabel. Now I want to differntiate between skeleton center line and branches. In short I ...
user1984451's user avatar
4 votes
1 answer
1k views

Grayscale morphology

Hello I've been trying to understand the grayscale dilation operation using the following example, but my results are different. $I = \begin{pmatrix} \bf{5} & 2 & 4 \\ 1 & -3 & 1 \end{...
BRabbit27's user avatar
  • 301
8 votes
3 answers
2k views

Shape of structuring elements for morphological gradients

I am looking to understand recommended shapes of structuring elements used in calculating morphological gradients. According to Pierre Soille: Morphological Image Analysis: Only symmetric ...
penelope's user avatar
  • 3,676
21 votes
3 answers
77k views

OpenCV/C++ connect nearby contours based on distance between them

I have to connect nearby contours in an image based on the distance between them which specifies if the contours are to be connected. Now there's a question already on the same problem here https://...
Roney Island's user avatar
11 votes
2 answers
274 views

On the de-noising of time-frequency images

I am wondering what techniques might be available for 'de-noising' the following example time-frequency image that was created using Welch's method. The following plot was created from a robotic ...
Spacey's user avatar
  • 9,897
8 votes
4 answers
661 views

How to: pixel packs in an image to representative point coordinates (x,y)

Let's have an image (gray-scale or even binary) as shown on the following figure at the left hand side, the goal is to generate a list of points i.e., coordinates in the form of (x,y) for each pack of ...
Developer's user avatar
  • 1,129
4 votes
1 answer
4k views

Erosion and dilation in images

I don't know if I am posting in the correct place. I wanted to ask about dilation and erosion in bitmaps. I have as a homework to implement in a programming language these morphological operations but ...
user avatar
8 votes
1 answer
2k views

How to compute 2D displacement vector for binary image registration?

My inputs are several binary images like: They have globally the same content but may be unregistered as they are produced from a hand camera. What I would like to compute is the 2D displacement ...
Stéphane Péchard's user avatar
16 votes
3 answers
2k views

How do I reconstruct text from an image using only morphological operations?

I want to reconstruct the text from the following image as best as possible. The tricky part is that I want to do it only using morphorogical operations on the image I tried using erosion, dilation, ...
Jackobsen's user avatar
  • 161