A method and apparatus for electronic image processing are described. One embodiment
includes a method of resizing an electronic image that includes image data in two
dimensions. The method includes memory-to-memory processing with separable x and
y processing. Processing occurs in one or more memory-to-memory passes. On each
pass, processing can be one of: low-pass filtering; low-pass filtering and decimation
by two; and resampling. Processing is configurable independently in each dimension.
Filters are configured on each pass and in each dimension to low-pass filter or
obtain gradients for resampling. A multiplexor selects resampling or low-pass filtering
on each pass.