how to create rounded edges of an irregular object? I want to smoothen the corners of this object.

Illustration
Beckham - 2020-09-28T11:44:36+00:00
Question: how to create rounded edges of an irregular object? I want to smoothen the corners of this object.

(No description available)

Expert Answer

Profile picture of Kshitij Singh Kshitij Singh answered . 2025-11-20

You can blur the image with imfilter() or conv2():

windowSize = 21; % Bigger for more blurring.
kernel = ones(windowSize) / windowSize^2;
output = imfilter(rgbImage, kernel);


Not satisfied with the answer ?? ASK NOW

Get a Free Consultation or a Sample Assignment Review!