Implemented the reprocess method and corrected the InputArray object