Serial implementation of HDR algorithm with tone mapping operator