How do I get the coordinates of a fingerprint image?
1 回表示 (過去 30 日間)
古いコメントを表示
I have several images in which they have been located in different areas. I would like to find the coordination of where the image of fingerprint is started. Then I want to define a small window square in left top corner of the fingerprint.
Any idea?
0 件のコメント
回答 (1 件)
Image Analyst
2014 年 5 月 16 日
If you can threshold you can look for the lowest index in the binary image. Here's one of many ways
binaryImage = grayImage < someThreshold;
[rows, columns] = find(binaryImage);
topRow = min(rows);
leftColumn = min(columns);
Another way
verticalProfile = mean(binaryImage, 2);
topRow = find(verticalProfile, 1, 'first');
horizontalProfile = mean(binaryImage, 1);
leftColumn = find(horizontalProfile, 1, 'first');
2 件のコメント
Image Analyst
2014 年 5 月 18 日
subImage = theImage(top_leftY:top_leftY+59, top_leftX:top_leftX+59);
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!