An arbitrary-shape image-processing device comprises a CCD by which a two-dimensional
image is obtained. The image may be rectangular, and a contour of an image area
contained in the image may be a circle. Pixel values contained in the image area
are converted to a one-dimensional data array, and are recorded in a recording
medium. Further, the numbers of pixels of the vertical and the lateral lengths
of the two-dimensional image, the coordinates of the center of the circle of the
image area, and the radius of the circle are recorded in the recording medium as
shape information. Thus, all of the image data of the two-dimensional image is
not recorded in the recording medium, but only the image data contained in the
image area and the shape information are recorded.