pub type PtrOfIMotionStabilizer = Ptr<dyn IMotionStabilizer>;
assumes that [0, size-1) is in or equals to [range.first, range.second)