I am using TrackerCSRT for object tracking in a video, and currently I use the init method on the tracker to set the region of interest
TrackerCSRT
region of interest
I do not know of setInitialMask but in python you can select your region of interest using cv2.selectROI() method.
setInitialMask
cv2.selectROI()
A blog post on tracking objects in a video can be found here along with relevant code in a step-by-step approach.