applyAffine
Apply the affine transform on 2D image.
Parameters
the affine matrix. The tensor must be a multi-dimension tensor of 1 channel and dimensions = 2x3. The data type must be 32-/64-bit float. You can use the result from getAffine operation here.
the image input to be affined. The tensor must be a multi-dimensional tensor of C channel and 2 dimensions. No requirement on the data type.
the affined result of srcImage by affineMatrix. The tensor must be a multi-dimensional tensor with the same C channel as that of srcImage. Its data type must be the same as that of srcImage as well. The tensor should have 2 dimensions.
Throws
If the usage is not allowed by the SpatialML run-time Framework, or if the framework encounter internal error and cannot perform the requested behavior.