Temporal partitioning for image processing based on time-space complexity in reconfigurable architectures