Raise a valuerror if even. 

Johannes Schönberger

> Am 19.09.2013 um 19:04 schrieb "Chintak Sheth" <notifications@github.com>:
> 
> In skimage/filter/inpaint_exemplar.py:
> 
> > +def inpaint_criminisi(source_image, synth_mask, window, max_thresh=0.2):
> > +    """Returns the image with masked pixels reconstructed.
> > +
> > +    This function performs constrained synthesis using Criminisi et al. [1]_.
> > +    It grows the texture of the surrounding region to fill in unknown pixels.
> > +
> > +    Parameters
> > +    ----------
> > +    source_image : (M, N) array, uint8
> > +        Input image whose texture is to be calculated.
> > +    synth_mask : (M, N) array, bool
> > +        Texture for True values are to be synthesised.
> > +    window : int
> > +        Width of the neighborhood window. (window, window) patch with centre at
> > +        the pixel to be inpainted. Refer to Notes below for details on
> > +        choice of value. Preferably odd, for symmetry.
> No, I need the window size to be odd. If even, then subtract 1 ?
> 
> —
> Reply to this email directly or view it on GitHub.