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

Should also be positive?