Actually Sir, After running this code, it is generating only a matrix of my image Frame size of zeros.... But I want to make a matrix of those feature values, which I detect from an image and mark those features on that given previous image..... The detected features should be marked as '1' and the other values should be '0' in the matrix.... Now please try to write another code....thank U..... like if the features detected are giving the value in Frame as: - 132 234
234 223
234 55
54 67
76 98
65 244
it should give the value like
1 0
0 1
0 0
0 1
1 0
1 1
1 0
where all '1s' are the detected feature values and the rest value should be '0' in matrix....