debugged ring detection for bayer pattern cameras