morphsnakes
morphsnakes copied to clipboard
morphsnakes using a reclangle levelset
Hi,
How can I use a rectangle similar to you use at "europe.gif"?. I want to use the coordinates of a rectangle instead of a circle.
Thanks.
once the MorphACWE or MorphGAC object is instantiated, change the levelset property to have 1s where you want the rectangle. for instance i believe this will have the desired effect:
macwe.levelset[:,:] = 1
macwe.levelset[2:-2,2:-2] = 0