12-14-2023, 02:25 PM

I have been trying for a couple of days to find the relationship between a selection bounding box and the radius which is used for shrink or grow selection.

My first thoughts were that the radius would be half the diagonal of the bounding box, but this appears not to be true.

In the Shrink/Grow/Feather LIVE PREVIEW GIMP by TinT he has used a binary search routine to find the shrink radius which reduces the selection size to zero in order to set the minimum value for the adjustment slider. However, this is very slow for large images.

I thought that there must be a mathematical formula for the shrink radius that would reduce the size of the smallest bounding box side to half of it's original value.

Help from our resident geniuses greatly appreciated!

david.

My first thoughts were that the radius would be half the diagonal of the bounding box, but this appears not to be true.

In the Shrink/Grow/Feather LIVE PREVIEW GIMP by TinT he has used a binary search routine to find the shrink radius which reduces the selection size to zero in order to set the minimum value for the adjustment slider. However, this is very slow for large images.

I thought that there must be a mathematical formula for the shrink radius that would reduce the size of the smallest bounding box side to half of it's original value.

Help from our resident geniuses greatly appreciated!

david.