Convert from image rectangular coordinate to cartesian coordinate in pixel mode
[cart_x,cart_y] = rect2cart(dim, rect_x, rect_y)
Dimention of the Scilab matrix (first 2 dim of the matrix) in row and column format, in [row col].
Input could be in rect_x and rect_y pairs (each in m x 1 matrix), or in m x 2 matrix which consist of [rect_x rect_y]
X in rectangular coordinate system
Y in rectangular coordinate system
Output in cart_x and cart_y pairs or matrix of [cart_x cart_y] following in the input format
X in cartesian coordinate system
Y in cartesian coordinate system
This function used to convert from image rectangular coordinate to cartesian coordinate in pixel mode.