Le 04/08/16 à 09:58, phuong hao nguyen thi a écrit :
> Sorry , I'm confused , I haven't ModelTransformationTag I just read
> ModelPixelScaleTag, ModelTiepointTag , width and height image
Then it is the same steps than before, except that the way to create the
matrix is a little bit more complicated. You can create an instance of
org.apache.sis.referencing.operation.matrix.Matrix4 and assign the
following values:
matrix.m00 = scaleX;
matrix.m11 = scaleY;
matrix.m22 = scaleZ;
For the tie points, if (I, J, K) a zero then:
matrix.m03 = X;
matrix.m13 = Y;
matrix.m23 = Z;
If (I, J, K) are not zero, then this is a little bit more complicated.
Martin