An image encoding apparatus comprises an image input unit 12 for entering
image data, a block split unit 14 for splitting the entered image data
into a plurality of blocks, a block extractor unit 16 and an averaging
unit 18, both of which act as a value acquisition unit for acquiring a
certain value from the split block image, and a code generation unit 20
for generating a code based on the acquired value of the block image.