Skip to content

adding the antialiasing option for resized #4264

@wyli

Description

@wyli

Is your feature request related to a problem? Please describe.
follow-up of #4020, the antialiasing functions in Resize

anti_aliasing: bool
Whether to apply a Gaussian filter to smooth the image prior
to downsampling. It is crucial to filter when downsampling
the image to avoid aliasing artifacts. See also ``skimage.transform.resize``
anti_aliasing_sigma: {float, tuple of floats}, optional
Standard deviation for Gaussian filtering used when anti-aliasing.
By default, this value is chosen as (s - 1) / 2 where s is the
downsampling factor, where s > 1. For the up-size case, s < 1, no
should be implemented in the resized.

it might be useful to include the default sigma computing logic (based on spatial size) as part of GaussianSmooth

class GaussianSmooth(Transform):

Metadata

Metadata

Type

No type

Projects

Status

✅ Done

Relationships

None yet

Development

No branches or pull requests

Issue actions