The commonly used definition of winding number depends on a choice of origin. This winding number is the number of rotations that a person standing at the chosen origin makes if they must look directly at a point whilst it traverses the curve from start to end. Since the imagined person stands at one spot, I shall call this the "standing winding number". For a given choice of origin, consider a polar coordinate system $(r, \theta)$ with that origin, and let $\big( r(t), \theta(t) \big)$ be a parameterisation of the curve, with $0 \leq t \leq T$. Then:
$$\text{standing winding number} := \frac{\theta(T) - \theta(0)}{2\pi}$$
The standing winding number is well-defined on all curves, whether open or closed, about any point that does not itself lie on the curve.
The standing winding number of a closed curve is always an integer, regardless of the choice of origin, but the particular integer value may vary depending on this choice. Specifically, it is constant on the connected components of the complement of the set of points on the curve. That is, imagine placing your finger on any point on the plane and moving it to any other point. If you can do so without your finger crossing over any part of the curve, then the standing winding number of the curve is the same about both of those points.
Indeed, an open curve will be seen to have integer standing winding number when the choice of origin is such that the start and end of the curve lie on a line of the form $\theta = \text{constant}$. That is, if the person standing at the origin walks directly towards the endpoint of the curve that is closest to them, continues walking in that direction, and eventually ends up at the other endpoint of the curve, then that curve has integer standing winding number about that point.
This "$\theta = \text{constant}$" criterion is precisely the criterion which must be satisfied in order for a curve to have integer standing winding number about a point, and since it is trivially satisfied for all closed curves (since the starting and ending points are the same point), this is why all closed curves have integer standing winding number.
We can devise another notion of winding number which does not depend on choice of origin. It is the number of rotations that a person walking along the curve makes if they always face their direction of motion whilst traversing the curve from end to end. For that reason, I shall call it the "walking winding number". We consider the curve in any Cartesian (square) coordinate system $(x, y)$, with a unit speed parameterisation $\mathbf{r}(t) = \big( x(t), y(t) \big)$ such that $\mathbf{r}(0)$ and $\mathbf{r}(T)$ are the endpoints. Consider the velocity vector $\dot{\mathbf{r}}(t) = \big( \dot{x}(t), \dot{y}(t) \big)$. We can define a continuous function $\alpha(t)$ that describes the direction of that vector (the direction that our imaginary person is facing) at time $t$. It is such that $\dot{\mathbf{r}}(t) = \big( \cos\alpha(t), \sin\alpha(t) \big)$, and its derivative $\frac{\mathrm{d}\alpha}{\mathrm{d}t}$ is unique, since the angle $\mathrm{d}\alpha$ by which the direction of motion changes after time $\mathrm{d}t$ does not depend on the choice of coordinate system. Thus, $\alpha(t)$ itself is unique up to a constant. Then:
$$\text{walking winding number} := \frac{1}{2\pi} \int_{t=0}^{T} { \frac{\mathrm{d}\alpha}{\mathrm{d}t} \mathrm{d}t } = \frac{\alpha(T) - \alpha(0)}{2\pi}$$
The walking winding number is unique and well-defined for any curve (whether open or closed), and does not depend on any choices such as coordinate system orientation or origin. Like the standing winding number, it is always an integer for closed curves, but an open curve may have integer winding number. For example, the open curve described in polar coordinates $(r, \theta)$ by $r = \theta$ has a walking winding number of:
- $1.5$ for $2\pi \leq \theta \leq 5\pi$.
- $2$ for $2\pi \leq \theta \leq 6\pi$.