fill a polygon with circles without intersection
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hamza
el 4 de Dic. de 2013
Comentada: Image Analyst
el 29 de Mayo de 2014
I want to create a random a polygon thin I want to fill the polygon with circles with 3 different radiuses I want to fill it first using the largest radius then with the smaller radiuses but the circles should not intersect with the polygon or with other circles please help me
0 comentarios
Respuesta aceptada
Image Analyst
el 4 de Dic. de 2013
What form do you want the image in? A list of centers and radii? Or an image. If you want an image (2D array) you can do it with a loop and a series of steps where you call bwdist() (to find out where the largest circle can go), then poly2mask() to drop the next circle there. When bwdist indicates that there can be no more circles of that size, then you drop down to the next largest circle. Keep looping until you can't fit anymore of the smallest circle. Not hard at all if you want an image and have the Image Processing Toolbox. If that's how you want to do it, and can't figure out how to put my algorithm into code, let me know.
Más respuestas (1)
Hamza
el 5 de Dic. de 2013
4 comentarios
fouzia razzaque
el 29 de Mayo de 2014
when I try to open the link provided by image analyst it shows, 'page cannot be displayed' :( need help
Image Analyst
el 29 de Mayo de 2014
I think they may have shut down that server. Try this one: http://www.visionbib.com/bibliography/contentscartog.html#Cartography,%20Aerial%20Images,%20Remote%20Sensing,%20Buildings,%20Roads,%20Terrain,%20ATR
Ver también
Categorías
Más información sobre Volume Visualization en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!