How to enlarge binary image background in output screen?
2 views (last 30 days)
Show older comments
Answered: Image Analyst on 4 Dec 2018
I am drawing 16 different radii circles over a binary image. I want visualize all circles that has been drawn over the image.
I = imread('P1_G4_9.png') ;
[nx,ny] = size(I) ;
[X,Y] = meshgrid(1:ny,1:nx) ;
C = [mean(X(:)) mean(Y(:))] ;
R = 1:10:100 ;
th = linspace(0,2*pi) ;
x = cos(th) ; y = sin(th) ;
for i = 1:length(R)
Assuming you have the circles and just need to visualize them, use viscircles().
If you want all the circles you have to, for some reason, extend beyond the image, you're going to have to enlarge the image with padarray(), NOT imresize().
Find more on Image Arithmetic in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!