have determined that equalizeHist can't be used with masks without using calcHist.