Rendering Nighttime Image Via Cascaded Color and Brightness Compensation