Devargya chakraborty in Discussions
最後のアクティビティ: 2023 年 2 月 26 日

I want to fit a circle just like the black line drawn in the figure and trying to find its radius. below is the code i am writing but not getting anything significant. kindly help me how to approch this kind of problems %%---------------------------- matlab code -----------------------------------%% clear all clc % read the image img = imread('gra.png'); % convert the image to grayscale img_gray = rgb2gray(img); % perform edge detection using the Canny algorithm edge_img = edge(img_gray, 'sobel'); % perform hough transform to detect circles [centers, radii] = imfindcircles(edge_img, [10 50000],'ObjectPolarity','bright','Sensitivity', 0.95); % find the largest circle [max_r, max_i] = max(radii); max_center = centers(max_i, :); % plot the results figure; imshow(img); hold on; viscircles(max_center, max_r, 'EdgeColor', 'b'); how to find the radius of a circle from an image image-processing circle fitting hough transformation

ThingSpeak について

The community for students, researchers, and engineers looking to use MATLAB, Simulink, and ThingSpeak for Internet of Things applications. You can find the latest ThingSpeak news, tutorials to jump-start your next IoT project, and a forum to engage in a discussion on your latest cloud-based project. You can see answers to problems other users have solved and share how you solved a problem.

モデレーター