Don't think so... 

Image > 1 => [1, 1], output of dtype uint8? Or do I miss here something?

> Am 12.10.2013 um 18:40 schrieb "Stefan van der Walt" <notifications@github.com>:
> 
> In skimage/morphology/binary.py:
> 
> > +    selem = selem != 0
> > +    selem_sum = np.sum(selem)
> > +    if selem_sum < 2 ** 8:
> > +        out_dtype = np.uint8
> > +    else:
> > +        out_dtype = np.intp
> > +
> > +    if out is None:
> > +        out = np.zeros_like(image, dtype=out_dtype)
> > +    else:
> > +        warnings.warn('Parameter `out` is deprecated and it does not equal '
> > +                      'the output image if the sum of the structuring element '
> > +                      'overflows the dtype of `out`.')
> > +        iinfo = np.iinfo(out.dtype)
> > +        if iinfo.max - iinfo.min < selem_sum:
> > +            raise ValueError('Sum of structuring (=%d) element results in '
> What if you had an input of [255, 255] and a mask of [1, 1], then the output would also overflow?
> 
> —
> Reply to this email directly or view it on GitHub.