|
Hello,
I have an image which represents a black&white handmade signature. I tranformed this image into a matrix, with this command:
A = imread('myImage.bmp');
A = not(img); /*I do this because I need the symbol "1" when there's a point of the signature and "0" when there isn't. */
So my matrix A has only 0 and 1 as symbols...
I need to find the cartesian coordinates of the matrix's points in which there is the symbol "1" and split them into 2 vectors, X and Y.
For example if my matrix is:
0 1 0 0
1 0 0 0
0 0 0 0
I need two vector like these:
X = [1; 2]
Y = [2; 3]
because there is a symbol 1 in position (1,2) and there's a symbol 1 in position (2,3). I hope it's clear
Can you help me, please?
|