How to find the point on the center of nose from an image ?

I have detected the nose from an image , nose i want a center point of that nose part , can someone help me in this ?

 Accepted Answer

By "detected" I assume you have a binary image that says whether a pixel is a nose pixel or not. So just pass that binary image into regionprops() and ask for the Centroid, or WeightedCentroid.
measurements = regionprops(binaryImage, 'Centroid', 'WeightedCentroid');
allCentroids = [measurements.Centroid];
allWeightedCentroids = [measurements.WeightedCentroid];

4 Comments

it gives all centroid points i just need a single point at the center of nose
You said "I have detected the nose from an image" so I believe you. It's one of the blobs in the binary image but I don't know which one. Let's pretend it's blob #3. So to get the centroid of blob #3, you refer to measurements(3).Centroid.
yes thanks i got it on blob # 2
can you help me out in iris detection , i have eye image now i need to detect iris from it .

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!