Algorithms for color analysis

The usual algorithms for the analysis and synthesis of woven textile structures assume, in general, that the interlacement data is binary, and that this data corresponds on a one-to-one basis with the visible pattern exhibited by a cloth constructed of just two colors. As soon as this two-valued restriction is lifted and the data array is permitted to contain an arbitrary number of colors, the analysis algorithm becomes considerably more complicated. Three classes of solutions now become possible. The form of this algorithm, the solutions, and the necessary implications for the architecture of the user interface are examined and an implementation is discussed.