An image processing apparatus includes a filtering processor that includes
a filter and switches between a pre-filtering path and a post-filtering
path; a data compressor that compresses image data output from the
filtering processor; an image data storage that stores the image data
compressed; and a data expandor that expands the image data stored. The
pre-filtering path includes a first path sending a raw image data to the
data compressor via the filter and a second path passing the image data
expanded. The post-filtering path includes a third path passing the raw
image data to the data compressor and a fourth path sending the image
data expanded to the filter.