# Article

**Keywords:**

digital image processing; geometry of agricultural products; bitmap representation; least squares optimization

**Summary:**

The paper presents the software procedure (using MAPLE 11) intended for considerable reduction of digital image data set to more easily treatable extent. The photos taken in high resolution (and corresponding data sets) contain coordinates of thousands of pixels, polygons, vertexes. Presented approach
substitutes this polygon by the new one, where smaller number of vertexes is used.
The task is solved by use of adapted least squares method. The presented algorithm enables reduction of number of vertexes to 5% of its original extent with acceptable accuracy $\pm$ one pixel (i.e. distance between the initial and the final polygon). The procedure can be used for processing of similar types of 2D images and acceleration of following computations.