Questions tagged [dilation]
22 questions
0
votes
0 answers
Pad and increase image area to fit dilation output | opencv | python
I am applying image dilation using opencv-python.
This is the input image,
After, applying dilation, the output is as follows,
The dilated image is getting clipped by the edges of image. How can we increase the area of the output image…

Souvik Das
- 36
- 5
0
votes
1 answer
Horizontal and Vertical dilation using skimage
My task is to perform directional morphological dilation on character, so it produces the horizontal bar for vertical dilation and vertical bar for horizontal dilation.
Where a) is an original character b) after vertical dilation and c) after…

ussrback
- 491
- 2
- 8
- 22
0
votes
1 answer
How to rename many images after processing with different parameters
Hello dear programmers,
I have a sequence of images and I would like to perform dilation on each of them with different dilation parameters. Then, I would like to save the processed images with new name including both the old name and the…

Patrice Gaofei
- 25
- 1
- 1
- 5
0
votes
1 answer
Set Dilation Kernel Anchor
I am trying to understand how to control the kernel anchor in dilation's OpenCV. Here is my example code to explain my idea:
import cv2
import numpy as np
import matplotlib.pyplot as plt
img = np.zeros((7, 7))
img[3, 3] = 255
kernel =…

Kasparov92
- 1,365
- 4
- 14
- 39
0
votes
0 answers
What is the difference between dilation and padding?
I am trying to understand the basic difference between padding and dilation.
As I understand, padding is the resulting creation of new 0 valued cells (? or matrix positions) at the ends of the image matrix upon convolution by a filter.
Dilation,…

abm17
- 131
- 1
- 2
0
votes
1 answer
Adaptive grayscale dilation implementation
Given a 2D array with values ranging from 0 to n, I would like to dilate each pixel by the value it contains, higher values should overwrite lower values during dilation.
That is to say, any pixel within the radius equivalent to a pixel’s value,…

Octavio del Ser
- 378
- 1
- 10
0
votes
1 answer
Why Imagemagick's morphology dilation algorithm differs from mathematical definition?
Origin Image
0 0 0
0 1 0
0 0 0
generated by:
$ convert -size 3x3 xc:black -fill white -draw 'point 1,1' origin.png
Dilation Process
Use a 2x1 rectangle as the kernel with central point (0,0):
processed by:
$ convert origin.png -morphology…

Weihang Jian
- 7,826
- 4
- 44
- 55