<< NL_V_RectanglesZoom NL_V: Vision NL_V_VisibilityGraph >>

NARVAL >> NL_V: Vision > NL_V_Vector2Image

NL_V_Vector2Image

Transform a linear coordinate to 2D coordinates inside a squared matrix.

Calling Sequence

[Row,Col] = NL_V_Vector2Image(L,R)

Arguments

L :

Linear coordinate.

R :

Squared matrix size.

Row :

Line index.

Col :

Column index.

Description

NL_V_Vector2Image transforms the linear coordinate L to its 2D coordinates [Row,Col] inside a squared matrix of size R*R. The linear coordinate belongs to [1,R*R].

Examples

r=100;//square size
x=ones(100,100);
l=NL_F_RandInt1n(r)//linear coordinate
[row,col]=NL_V_Vector2Image(l,r)//application of NL_V_Vector2Image

Report an issue
<< NL_V_RectanglesZoom NL_V: Vision NL_V_VisibilityGraph >>