| As a kind of articles for daily use, socks have such functions aswarming, decorating and health care and so on. In all kinds of socks,Jacquard-sock is especially popular among the consumers, because itspatterns and colors are tightly connected with current tendency. But, as aresult of the socks’ special formations, the method of patterns’ analysisand its translation to pattern grid is still by hand now, which does wastetime and energy, furthermore, the translation of pictures to pattern gridscould cause serious deformation. So, it is impossible to satisfy the demandof the fast changing market by this traditional analysis-design means. Inorder to solve the problems above, and express the patterns of socks,pictures in the magazines or designer’s quickly and correctly, thetechnology of digital image processing was introduced. In this paper, a fastcomputer aided analysis and design system of jacquard socks wasdeveloped. The system includes the transformation of pattern grids, themaking of technical sheet, and the database to store the pictures. All thesefunctions could simplify the process of analysis, design, and knittingtechnology, shorten the circle of design, improve the working efficiency,and especially lessen the working intensity of workers, bring greatbusiness results.All the works which were carried out in developing the softwarecould be generated to following four parts: (1) Scanning and pre-processing the pictures of sock’s patterns. Dueto the sock’s special formation, it is difficult to collect the ideascanning-pictures. So, a special board was used to put into the sock wherethe pattern was placed to enlarge the distance of two loops properly, thenrectify the course and wale to horizontal line and vertical line respectively,fixing this status with big-head needles. In this situation, a better picturecould be collected. According to the quality of the images and the furtherdemanding, some image pre-processing could be done such as histogramequalization, smooth and sharpen. Image filtering was used to suppressnoises and to select features.(2) Study on the algorithms. The key of this paper was patternrecognition of jacquard sock. The identifying procedure included twofactors: calculating the size of patterns and filling each grid’s color. Hence,study on the algorithms of density-identifying and color-clustering wasnecessary. Two-dimensional Fourier Transform combined with waveletTransform techniques was proposed to identify fabric’s density. Featuresof courses and wales were selected through wavelet transform. ApplyingFourier transform, the periodical grade variety of courses and wales inspatial domain can be converted to power spectrum in the frequencydomain, since the FFT is particularly useful for analyzing periodicity,directionality, and spacing of repeating units in the fabric. A radialfunction, derived from power spectrum, was used to measure the densityof sock’s density, then the size of pattern could be calculated. Severalcolor clustering algorithms such as popularity algorithm, K-means, andoctree color quantization algorithm were discussed. After analyzing andcomparing their advantages and disadvantages, octree color quantizationalgorithm and popularity algorithm were opted to decrease the number ofimage’s color. Moreover, color changing function was developed on this theory. Experimental outcome shows good results of the color clusteringmethod.(3) Creating the sock-model and database. In this part, after knowingwell of the sock’s structure, the computer paragraph technique was appliedto set up sock-model, according to the technique parameters. Besides, inorder to store the information of pictures conveniently, a small Accessdatabase was built using professional database software.(4) Coding and interface design. As an object-orientation tool ofcoding, visual c++ was used to develop the system. This applying systemwas designed to be a single document software based on the database. Itmodels each class function, clarifies the structure of programs, correctsand modifies the program. Enlarging or deleting some parts of functionswould even not cause side-effect to the system, which was benefit forupdating the software. The whole interface of this system was designed asWindows’ surface. Much of the functions were based on dialogs, and all ofthe operating process could be carried out through mouse-clicking, whichmakes it very easy even for the amateurs to study and manipulate theapplying system. |