The rank of ternary polynomial depends on the rank of R, G, B,and the first-order polynomial is a linear transformation. In orderto get the transformation algorithm which can generate the valuescloser to theoretical values, we need establish a nonlinear conver-sion relation. The more samples, the more terms the polynomialsneed. For example, the polynomial with 10 numbers, we set