Find the no of pixels, edge values and indices of the required Q rings

Do this with an mask + broadcasting.