Relaxation oscillator circuit design for image segmentation