code
solution
//output
//copyable code
%matlab code
%read the image
readimg= imread('circle.png');
readimg = rgb2gray(readimg );
[m1,n1] = size(readimg );
%show image
imshow(readimg );
%check the data
image_b = zeros(m1,n1);
for i = 1:m1
for j = 1:n1
if readimg(i,j) > 100
image_b(i,j) = 255;
else
image_b(i,j) = 0;
end
end
end
imshow(image_b);
% part c The area of the circle
values = 0;
for i=1:m1
for j=1:n1
if image_b(i,j) == 255
values = values + 1;
end
end
end
picture = 0;
start_pointx = 0;
start_pointy = 0;
stop_x = 0;
stop_y = 0;
% part a and b The radius of the circle and center of the circle.
for i=1:m1
for j=2:n1-1
if image_b(i,j) == 255 && image_b(i,j-1) == 0
start_pointx = i;
start_pointy = j;
end
if image_b(i,j) == 255 && image_b(i,j+1) == 0
stop_x = i;
stop_y = j;
end
end
x = stop_y - start_pointy;
if x > picture
picture = x;
center_x = start_pointx;
center_y = (stop_y + start_pointy)/2;
end
end
radius = picture/2;
% Display Data
fprintf('Center of Circle: (%.2f,%.2f)\n', center_x, center_y);
fprintf('Radius of Circle: %.2f pixels\n', radius);
fprintf('Area of Circle: %.2f pixels\n', values);
can you just help with the first 3 parts? 4.1 Tas 1 feature : Process a low resolution sensor image with an ideali...
Help with matlab please? You are given an idealised test image with a single circular feature. You are to develop an algorithm and implement that algorithm in the form of a MATLAB program that is capable of performing the following tasks. Find the centre of the circular feature in pixels. Calculate the radius of the feature in pixels. 2. Calculate the area of the feature in pixels. 3. Task 1: Low Resolution Sensor Image 10 20 30 40 50 80...