How to convert an image frame of Facial extracted features to a 0-1 matrix...????
Show older comments
How to convert an image frame of Facial extracted features to a 0-1 matrix...????
Here 0-1 means , wherever the extracted features are plotted on the image , there the matrix value should be 1, otherwise 0 anywhere else.....
Like in this link, the detected features are plotted on the image.....
So, how can I change the facial features wherever in the image to 1 and except it, the other values should be zero.....
2 Comments
FARAH ANSARI
on 17 Apr 2013
Image Analyst
on 17 Apr 2013
I don't understand what those numbers are. Are they x,y coordinates of salient points? What is the 1,0 matrix? It's not an image, so what is it? What if the features are the area of the head, the length of the nose, the mean color of the face, and the distance between the eyes. How would you handle that?
Answers (1)
Image Analyst
on 17 Apr 2013
Obviously, first, you must have a list of the x,y coordinates of the features. So then just make a matrix and assign them
featureLocations = zeros(size(grayImage));
for k = 1 : length(y)
featureLocations (y(k), x(k)) = 1;
end
It's as simple as that.
Categories
Find more on Feature Detection and Extraction in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!