MATLAB: How to get a uniform circle circlesedge enhancementsmothing edgesuniform Hi I have the following Image of a circle I want to make its edges uniform can any body help ?? Best Answer hi,i tired to write a fast code, try it and see : I=imread('dcircle.png'); % that image with deformed circle.X=rgb2gray(I);N=size(X);% finding an approximation of the center% you take where you want start counting xc=100;n=0; % number of black pixels vertically descending for y=1:N(2) if X(xc,y)>0.70; n=n+1; endend% the center is then given by :r=n/4;yc=N(2)/2;Y=zeros(N(1),N(2)); for x=1:N(1) for y=1:N(2) rt=sqrt(((x-xc)^2)+((y-yc)^2)); if rt>=r Y(x,y)=1; end endendfigure,subplot(1,2,1), imshow(X),title(' initial');subplot(1,2,2), imshow(Y), title(' adjusted'); Related SolutionsMATLAB: How to compute centroidal distances I assume you mean regionprops(BW, I ,'WeightedCentroid') ? You need an intensity image I, to invoke that option. MATLAB: 1. How do i get Centroid and its corresponding Equivdiameter when regionprops is used stats = regionprops(TheImage, 'Centroid', 'EquivDiameter');stats(1).Centroidstats(1).EquivDiameter Related QuestionExtraction of rectangular blob from binary imageHi, i would like to know how I can find out all circles in attached image.How to plot the diameters of an irregularly shaped region in an imageFinding average radius of a binarized image of a circle
Best Answer