An RGB-HC histogram library for same-origin images