Characterization of Active Pixel Sensors fabricated in CMOS 0.18um technology