Actually no. Changes always go by two. At worst you will count the change
in one sens and not the change back like.
For instance with the 4-pattern: 0 0 1 1.
You'll count changes = 1 and miss the second change on the boundaries. For
a non uniform pattern you'll always count changes > 2.
So it's ok



2013/8/22 Johannes Schönberger <notifications@github.com>

> In skimage/feature/_texture.pyx:
>
> > @@ -141,24 +145,67 @@ def _local_binary_pattern(double[:, ::1] image,
> >              lbp = 0
> >
> >              # if method == 'uniform' or method == 'var':
> > -            if method == 'U' or method == 'V':
> > +            if method == 'U' or method == 'N' or method == 'V':
> >                  # determine number of 0 - 1 changes
> >                  changes = 0
> >                  for i in range(P - 1):
> >                      changes += abs(signed_texture[i] - signed_texture[i + 1])
>
> I know I am the author of this code, but don't we have to test for a
> change in signed_texture[0] and signed_texture[P-1] as well, since it is
> circular?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/scikit-image/scikit-image/pull/704/files#r5933858>
> .
>