You could just copy the example from https://github.com/scikit-image/scikit-image/pull/699/files#L3R230