Consider a binary mask as
Image[DiskMatrix[All,{100,150}]];
Now I wish to have a strip like this:
such that I can manipulate the inner radius, and the outer radius (here major and minor axes) without changing the original image size.
How can I do this?
Edit 1:
I just figured out that I can do this in the following way:
Manipulate[mask1 = Image[DiskMatrix[{100*m, 150*m}, {100, 150}]];
mask2 = Image[DiskMatrix[{100*n, 150*n}, {100, 150}]];
ImageSubtract[mask1, ImageMultiply[mask1, mask2]], {m, 0, 0.5},
{n, 0, m}]
Is there any better way to do this?